Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Mesquite debug output

Classes

class  MsqDebug
 Run-time activation/deactivation of debug flags. More...
 

Macros

#define MSQ_DBG(flag)   false
 Check if a debug flag is activated - evaluates to a bool. More...
 
#define MSQ_DBGOUT(flag)   if (MSQ_DBG(flag)) Mesquite::MsqDebug::get_stream(flag)
 Check debug flag and return ostream associated with flag. More...
 
#define MSQ_PRINT(flag)   if (MSQ_DBG(flag)) Mesquite::MsqDebug::FormatPrinter(flag).print
 Check debug flag and print printf-style formatted output. More...
 
#define MSQ_DBG(flag)   false
 Check if a debug flag is activated - evaluates to a bool. More...
 
#define MSQ_DBGOUT(flag)   if (MSQ_DBG(flag)) Mesquite::MsqDebug::get_stream(flag)
 Check debug flag and return ostream associated with flag. More...
 
#define MSQ_PRINT(flag)   if (MSQ_DBG(flag)) Mesquite::MsqDebug::FormatPrinter(flag).print
 Check debug flag and print printf-style formatted output. More...
 

Detailed Description

Macro Definition Documentation

#define MSQ_DBG (   flag)    false

Check if a debug flag is activated - evaluates to a bool.

Definition at line 148 of file src/Misc/MsqDebug.hpp.

#define MSQ_DBGOUT (   flag)    if (MSQ_DBG(flag)) Mesquite::MsqDebug::get_stream(flag)

Check debug flag and return ostream associated with flag.

Evaluates to a conditional calling of an ostream depending on the debug flag. Example: MSQ_DBGOUT(f) << "Debug flag " << f << " is activated" << endl;

Definition at line 158 of file src/Misc/MsqDebug.hpp.

#define MSQ_DBGOUT (   flag)    if (MSQ_DBG(flag)) Mesquite::MsqDebug::get_stream(flag)
#define MSQ_PRINT (   flag)    if (MSQ_DBG(flag)) Mesquite::MsqDebug::FormatPrinter(flag).print
#define MSQ_PRINT (   flag)    if (MSQ_DBG(flag)) Mesquite::MsqDebug::FormatPrinter(flag).print

Check debug flag and print printf-style formatted output.

Evaluatues to a conditional print depending on the debug flag. Example: MSQ_PRINT(f)("Debug flag %d is activated", f);

Definition at line 167 of file src/Misc/MsqDebug.hpp.