LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 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,
137  demangled,
138  library,
139  shortLibrary,
140  offset,
141  NOptions
142  }; // option_t
Print the library name the function lives in.
Definition: DebugUtils.h:138
Print the instruction pointer memory address.
Definition: DebugUtils.h:136
Use demangled function names when possible.
Definition: DebugUtils.h:137
Number of available options.
Definition: DebugUtils.h:141
Print a shorter library name (base name only).
Definition: DebugUtils.h:139
Print the offset from the beginning of function.
Definition: DebugUtils.h:140

Member Function Documentation

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

Returns whether the specified option is set.

Definition at line 151 of file DebugUtils.h.

Referenced by lar::debug::CallInfoPrinter::print().

151 { return options.test(o); }
std::bitset< NOptions > options
Value of current options.
Definition: DebugUtils.h:144
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 147 of file DebugUtils.h.

Referenced by lar::debug::CallInfoPrinter::defaultOptions().

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> lar::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: