LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 131 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 133 of file DebugUtils.h.

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

Member Function Documentation

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

Returns whether the specified option is set.

Definition at line 152 of file DebugUtils.h.

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

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

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

Member Data Documentation

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

Value of current options.

Definition at line 142 of file DebugUtils.h.


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