Public Types | Public Member Functions | Public Attributes | List of all members
gar::debug::CallInfoPrinter::opt Struct Reference

Set of options for printing. More...

#include <DebugUtils.h>

Public Types

enum  option_t {
  address, demangled, library, shortLibrary,
  offset, NOptions
}
 List of available options. More...
 

Public Member Functions

optset (option_t o, bool set=true)
 Set one option o to the specified set value (true by default) More...
 
bool has (option_t o) const
 Returns whether the specified option is set. More...
 

Public Attributes

std::bitset< NOptionsoptions
 value of current options More...
 

Detailed Description

Set of options for printing.

Definition at line 133 of file DebugUtils.h.

Member Enumeration Documentation

List of available options.

Enumerator
address 

print the instruction pointer memory address

demangled 

use demangled function names when possible

library 

print the library name the function lives in

shortLibrary 

print a shorter library name (base name only)

offset 

print the offset from the beginning of function

NOptions 

number of available options

Definition at line 135 of file DebugUtils.h.

135  {
136  address, ///< print the instruction pointer memory address
137  demangled, ///< use demangled function names when possible
138  library, ///< print the library name the function lives in
139  shortLibrary, ///< print a shorter library name (base name only)
140  offset, ///< print the offset from the beginning of function
141  NOptions ///< number of available options
142  }; // option_t
use demangled function names when possible
Definition: DebugUtils.h:137
print the offset from the beginning of function
Definition: DebugUtils.h:140
print a shorter library name (base name only)
Definition: DebugUtils.h:139
number of available options
Definition: DebugUtils.h:141
print the instruction pointer memory address
Definition: DebugUtils.h:136
print the library name the function lives in
Definition: DebugUtils.h:138

Member Function Documentation

bool gar::debug::CallInfoPrinter::opt::has ( option_t  o) const
inline

Returns whether the specified option is set.

Definition at line 151 of file DebugUtils.h.

151 { return options.test(o); }
std::bitset< NOptions > options
value of current options
Definition: DebugUtils.h:144
opt& gar::debug::CallInfoPrinter::opt::set ( option_t  o,
bool  set = true 
)
inline

Set one option o to the specified set value (true by default)

Definition at line 147 of file DebugUtils.h.

148  { options.set(o, set); return *this; }
std::bitset< NOptions > options
value of current options
Definition: DebugUtils.h:144

Member Data Documentation

std::bitset<NOptions> gar::debug::CallInfoPrinter::opt::options

value of current options

Definition at line 144 of file DebugUtils.h.


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