QMCPACK
TraceQuantity Struct Reference
+ Collaboration diagram for TraceQuantity:

Public Member Functions

 TraceQuantity ()
 
void incorporate (const TraceQuantity &other)
 

Public Attributes

std::string name
 
bool default_quantity
 
bool combined_quantity
 
bool scalar_available
 
bool array_available
 
bool scalar_stream_requested
 
bool array_stream_requested
 
bool scalar_write_requested
 
bool array_write_requested
 
bool stream_scalar
 
bool stream_array
 
bool write_scalar
 
bool write_array
 

Detailed Description

Definition at line 53 of file TraceManager.h.

Constructor & Destructor Documentation

◆ TraceQuantity()

TraceQuantity ( )
inline

Definition at line 69 of file TraceManager.h.

References TraceQuantity::array_available, TraceQuantity::array_stream_requested, TraceQuantity::array_write_requested, TraceQuantity::combined_quantity, TraceQuantity::default_quantity, TraceQuantity::scalar_available, TraceQuantity::scalar_stream_requested, TraceQuantity::scalar_write_requested, TraceQuantity::stream_array, TraceQuantity::stream_scalar, TraceQuantity::write_array, and TraceQuantity::write_scalar.

70  {
71  default_quantity = false;
72  combined_quantity = false;
73  scalar_available = false;
74  array_available = false;
76  array_stream_requested = false;
77  scalar_write_requested = false;
78  array_write_requested = false;
79  stream_scalar = false;
80  stream_array = false;
81  write_scalar = false;
82  write_array = false;
83  }

Member Function Documentation

◆ incorporate()

void incorporate ( const TraceQuantity other)
inline

Definition at line 85 of file TraceManager.h.

References APP_ABORT, TraceQuantity::array_available, TraceQuantity::array_stream_requested, TraceQuantity::combined_quantity, TraceQuantity::default_quantity, TraceQuantity::name, TraceQuantity::scalar_available, and TraceQuantity::scalar_stream_requested.

86  {
87  if (name != other.name)
88  {
89  APP_ABORT("TraceQuantity::incorporate\n cannot merge quantities with differing names\n names: " + name + " " +
90  other.name);
91  }
92  default_quantity |= other.default_quantity;
93  combined_quantity |= other.combined_quantity;
94  scalar_available |= other.scalar_available;
95  array_available |= other.array_available;
96  scalar_stream_requested |= other.scalar_stream_requested;
97  array_stream_requested |= other.array_stream_requested;
98  }
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
Definition: AppAbort.h:27

Member Data Documentation

◆ array_available

◆ array_stream_requested

◆ array_write_requested

bool array_write_requested

◆ combined_quantity

◆ default_quantity

◆ name

◆ scalar_available

◆ scalar_stream_requested

◆ scalar_write_requested

bool scalar_write_requested

◆ stream_array

◆ stream_scalar

◆ write_array

◆ write_scalar


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