SST/macro
Public Member Functions | Public Attributes | List of all members
sprockit::debug_int Class Reference

The debug_int class is an opaque wrapper around an integer used for checking if debug slots are active. More...

#include <debug.h>

Collaboration diagram for sprockit::debug_int:
Collaboration graph

Public Member Functions

 debug_int (int slot)
 
 debug_int ()
 
debug_intoperator~ ()
 
void init (int slot)
 
debug_intoperator= (const debug_int &rhs)
 
 operator bool () const
 
std::string to_string () const
 

Public Attributes

uint64_t fields
 

Detailed Description

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.

Definition at line 34 of file debug.h.

Constructor & Destructor Documentation

sprockit::debug_int::debug_int ( int  slot)
inline

Definition at line 37 of file debug.h.

References init().

Here is the call graph for this function:

sprockit::debug_int::debug_int ( )
inline

Definition at line 41 of file debug.h.

References fields.

Member Function Documentation

void sprockit::debug_int::init ( int  slot)
inline

Definition at line 52 of file debug.h.

References fields.

Referenced by debug_int().

sprockit::debug_int::operator bool ( ) const
inline

Definition at line 61 of file debug.h.

References fields, and to_string().

Here is the call graph for this function:

debug_int& sprockit::debug_int::operator= ( const debug_int rhs)
inline

Definition at line 56 of file debug.h.

References fields.

debug_int& sprockit::debug_int::operator~ ( )
inline

Definition at line 46 of file debug.h.

References fields.

std::string sprockit::debug_int::to_string ( ) const

Referenced by operator bool().

Member Data Documentation

uint64_t sprockit::debug_int::fields

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