Public Member Functions | Private Attributes | List of all members
oomph::OomphInfo Class Reference

#include <oomph_definitions.h>

Public Member Functions

 OomphInfo ()
 Set default values for the output stream (cout) and modifier (no modification) More...
 
template<class _Tp >
std::ostream & operator<< (_Tp argument)
 Overload the << operator, writing output to the stream addressed by Stream_pt and calling the function defined by the object addressed by Output_modifier_pt. More...
 
std::ostream *& stream_pt ()
 Access function for the stream pointer. More...
 
std::ostream & operator<< (std::ostream &(*f)(std::ostream &))
 Overload insertor to handle stream modifiers. More...
 
OutputModifier *& output_modifier_pt ()
 Access function for the output modifier pointer. More...
 

Private Attributes

std::ostream * Stream_pt
 Pointer to the output stream – defaults to std::cout. More...
 
OutputModifierOutput_modifier_pt
 Pointer to the output modifier object – defaults to no modification. More...
 

Detailed Description

This class is a wrapper to a stream and an output modifier that is used to control the "info" output from OomphLib. Its instationiation can be used like std::cout.

Definition at line 433 of file oomph_definitions.h.

Constructor & Destructor Documentation

oomph::OomphInfo::OomphInfo ( )
inline

Set default values for the output stream (cout) and modifier (no modification)

Definition at line 448 of file oomph_definitions.h.

Member Function Documentation

template<class _Tp >
std::ostream& oomph::OomphInfo::operator<< ( _Tp  argument)
inline

Overload the << operator, writing output to the stream addressed by Stream_pt and calling the function defined by the object addressed by Output_modifier_pt.

Definition at line 455 of file oomph_definitions.h.

References oomph::oomph_nullstream.

std::ostream& oomph::OomphInfo::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Overload insertor to handle stream modifiers.

Definition at line 472 of file oomph_definitions.h.

OutputModifier* & oomph::OomphInfo::output_modifier_pt ( )
inline

Access function for the output modifier pointer.

Definition at line 478 of file oomph_definitions.h.

Referenced by oomph::MPI_Helpers::init().

std::ostream* & oomph::OomphInfo::stream_pt ( )
inline

Member Data Documentation

OutputModifier* oomph::OomphInfo::Output_modifier_pt
private

Pointer to the output modifier object – defaults to no modification.

Definition at line 442 of file oomph_definitions.h.

std::ostream* oomph::OomphInfo::Stream_pt
private

Pointer to the output stream – defaults to std::cout.

Definition at line 439 of file oomph_definitions.h.


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