#include <source/toolbox/base/Tracer.h>
Public Member Functions | |
Tracer (const std::string &message) | |
~Tracer () | |
Static Public Member Functions | |
static void | setTraceStream (std::ostream *stream) |
* #include "tbox/Tracer.h" * .... * void MyClass::myClassMemberFunction() * { * Tracer t("MyClass::myClassMemberFunction"); * .... * } *
SAMRAI::tbox::Tracer::Tracer | ( | const std::string & | message | ) | [inline] |
The constructor for Tracer prints ``Entering <message>'' to the tracer output stream.
SAMRAI::tbox::Tracer::~Tracer | ( | ) | [inline] |
The destructor for Tracer prints ``Exiting <message>'' to the tracer output stream.
void SAMRAI::tbox::Tracer::setTraceStream | ( | std::ostream * | stream | ) | [inline, static] |
Set the tracer output stream for all tracer output. By default, this is set to the parallel log stream plog. If this argument is NULL, then all output to trace streams is disabled.