InfoProxy< T > Class Template Reference

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

Public Member Functions

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

Public Attributes

const Tt_
 The captured object reference. More...
 

Friends

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

Detailed Description

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

A helper class for outputting values to Ostream.

Definition at line 43 of file ensightCells.H.

Constructor & Destructor Documentation

◆ InfoProxy()

InfoProxy ( const T item)
inlinenoexcept

Implicit construct from object reference.

Definition at line 65 of file InfoProxy.H.

Member Function Documentation

◆ operator*()

const T& operator* ( ) const
inlinenoexcept

Return const reference to the object.

Definition at line 76 of file InfoProxy.H.

References InfoProxy< T >::t_.

Friends And Related Function Documentation

◆ operator

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

Output information to stream.

Member Data Documentation

◆ t_

const T& t_

The captured object reference.

Definition at line 57 of file InfoProxy.H.

Referenced by InfoProxy< T >::operator*().


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