Loading...
Searching...
No Matches
InfoProxy< T > Class Template Reference

A helper class for outputting values to Ostream. More...

#include <InfoProxy.H>

Public Member Functions

 InfoProxy (const T &item) noexcept
 Implicit construct from object reference.
const Toperator* () const noexcept
 Return const reference to the object.

Public Attributes

const Tt_
 The captured object reference.

Friends

Ostreamoperator<< (Ostream &, const InfoProxy< T > &)
 Output information to stream.

Detailed Description

template<class T>
class Foam::InfoProxy< T >

A helper class for outputting values to Ostream.

Definition at line 48 of file InfoProxy.H.

Constructor & Destructor Documentation

◆ InfoProxy()

template<class T>
InfoProxy ( const T & item)
inlinenoexcept

Implicit construct from object reference.

Definition at line 65 of file InfoProxy.H.

References Foam::noexcept, and Foam::T().

Referenced by operator<<.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ operator*()

template<class T>
const T & operator* ( ) const
inlinenoexcept

Return const reference to the object.

Definition at line 76 of file InfoProxy.H.

References Foam::noexcept, Foam::T(), and t_.

Here is the call graph for this function:

◆ operator<<

template<class T>
Ostream & operator<< ( Ostream & ,
const InfoProxy< T > &  )
friend

Output information to stream.

References InfoProxy().

Member Data Documentation

◆ t_

template<class T>
const T& t_

The captured object reference.

Definition at line 57 of file InfoProxy.H.

Referenced by operator*().


The documentation for this class was generated from the following files: