ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
EspressoCaliRegion Struct Reference

RAII region guard: begin on construction, end on destruction. More...

#include <caliper_utils.hpp>

Public Member Functions

 EspressoCaliRegion (const char *name, bool active)
 
 ~EspressoCaliRegion ()
 
 EspressoCaliRegion (const EspressoCaliRegion &)=delete
 
EspressoCaliRegionoperator= (const EspressoCaliRegion &)=delete
 

Public Attributes

const char * name_
 
bool active_
 

Detailed Description

RAII region guard: begin on construction, end on destruction.

Conditionally calls cali_begin_region / cali_end_region only when espresso_cali_active() is true. Correctly handles all exit paths.

Definition at line 89 of file caliper_utils.hpp.

Constructor & Destructor Documentation

◆ EspressoCaliRegion() [1/2]

EspressoCaliRegion::EspressoCaliRegion ( const char *  name,
bool  active 
)
inline

Definition at line 93 of file caliper_utils.hpp.

References active_, and name_.

◆ ~EspressoCaliRegion()

EspressoCaliRegion::~EspressoCaliRegion ( )
inline

Definition at line 98 of file caliper_utils.hpp.

References active_, and name_.

◆ EspressoCaliRegion() [2/2]

EspressoCaliRegion::EspressoCaliRegion ( const EspressoCaliRegion )
delete

Member Function Documentation

◆ operator=()

EspressoCaliRegion & EspressoCaliRegion::operator= ( const EspressoCaliRegion )
delete

Member Data Documentation

◆ active_

bool EspressoCaliRegion::active_

Definition at line 91 of file caliper_utils.hpp.

Referenced by EspressoCaliRegion(), and ~EspressoCaliRegion().

◆ name_

const char* EspressoCaliRegion::name_

Definition at line 90 of file caliper_utils.hpp.

Referenced by EspressoCaliRegion(), and ~EspressoCaliRegion().


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