SST/macro
|
The debug_int class is an opaque wrapper around an integer used for checking if debug slots are active. More...
#include <debug.h>
Public Member Functions | |
debug_int (int slot) | |
debug_int () | |
debug_int & | operator~ () |
void | init (int slot) |
debug_int & | operator= (const debug_int &rhs) |
operator bool () const | |
std::string | to_string () const |
Public Attributes | |
uint64_t | fields |
The debug_int class is an opaque wrapper around an integer used for checking if debug slots are active.
The debug system will internally store a debug_int bitmask with 1's corresponding to all the debug slots activated via command line/param file. Every debug print request provides a debug_int to check against the internal bitmask. If the bitwise AND is zero, no active debug slots match and nothing is printed.
|
inline |
|
inline |
|
inline |
Definition at line 61 of file debug.h.
References fields, and to_string().
|
inline |
std::string sprockit::debug_int::to_string | ( | ) | const |
Referenced by operator bool().
uint64_t sprockit::debug_int::fields |
Definition at line 68 of file debug.h.
Referenced by debug_int(), init(), operator bool(), sprockit::operator&(), operator=(), sprockit::operator|(), and operator~().