Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::CxxDebugStream Class Reference
+ Inheritance diagram for moab::CxxDebugStream:
+ Collaboration diagram for moab::CxxDebugStream:

Public Member Functions

 CxxDebugStream (std::ostream &str)
 
void println (int rank, const char *pfx, const char *str)
 
void println (const char *pfx, const char *str)
 
- Public Member Functions inherited from moab::DebugOutputStream
 DebugOutputStream ()
 
virtual ~DebugOutputStream ()
 

Private Attributes

std::ostream & outStr
 

Additional Inherited Members

- Protected Attributes inherited from moab::DebugOutputStream
int referenceCount
 

Detailed Description

Definition at line 40 of file DebugOutput.cpp.

Constructor & Destructor Documentation

◆ CxxDebugStream()

moab::CxxDebugStream::CxxDebugStream ( std::ostream &  str)
inline

Definition at line 46 of file DebugOutput.cpp.

46 : outStr( str ) {}

Member Function Documentation

◆ println() [1/2]

void moab::CxxDebugStream::println ( const char *  pfx,
const char *  str 
)
virtual

Implements moab::DebugOutputStream.

Definition at line 56 of file DebugOutput.cpp.

57 {
58  outStr << pfx << str << std::endl;
59  outStr.flush();
60 }

References outStr.

◆ println() [2/2]

void moab::CxxDebugStream::println ( int  rank,
const char *  pfx,
const char *  str 
)
virtual

Implements moab::DebugOutputStream.

Definition at line 50 of file DebugOutput.cpp.

51 {
52  outStr.width( 3 );
53  outStr << rank << " " << pfx << str << std::endl;
54  outStr.flush();
55 }

References outStr.

Member Data Documentation

◆ outStr

std::ostream& moab::CxxDebugStream::outStr
private

Definition at line 43 of file DebugOutput.cpp.

Referenced by println().


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