Public Types | Public Member Functions | Public Attributes | List of all members
lar::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 135 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 137 of file DebugUtils.h.

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

Member Function Documentation

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

Returns whether the specified option is set.

Definition at line 153 of file DebugUtils.h.

153 { return options.test(o); }
std::bitset< NOptions > options
Value of current options.
Definition: DebugUtils.h:146
opt& lar::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 149 of file DebugUtils.h.

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

Member Data Documentation

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

Value of current options.

Definition at line 146 of file DebugUtils.h.


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