![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
RAII iteration annotation for one pass through a loop body. More...
#include <caliper_utils.hpp>
Public Member Functions | |
| EspressoCaliIteration (cali_id_t iter_attr, int iter, bool active) | |
| ~EspressoCaliIteration () | |
| EspressoCaliIteration (const EspressoCaliIteration &)=delete | |
| EspressoCaliIteration & | operator= (const EspressoCaliIteration &)=delete |
| EspressoCaliIteration (EspressoCaliIteration &&other) noexcept | |
| EspressoCaliIteration & | operator= (EspressoCaliIteration &&)=delete |
Public Attributes | |
| cali_id_t | iter_attr_ |
| bool | active_ |
RAII iteration annotation for one pass through a loop body.
Returned by EspressoCaliLoop::iteration(). When active, calls cali_begin_int on the loop's iteration attribute on construction and cali_end_byid on destruction — identical to what cali::Loop::Iteration does internally. When inactive, both operations are no-ops.
The object must be stored at the top of the loop body so that its lifetime spans the loop body:
Definition at line 123 of file caliper_utils.hpp.
|
inline |
Definition at line 127 of file caliper_utils.hpp.
References active_, and iter_attr_.
|
inline |
Definition at line 132 of file caliper_utils.hpp.
References active_, and iter_attr_.
|
delete |
|
inlinenoexcept |
Definition at line 139 of file caliper_utils.hpp.
|
delete |
|
delete |
| bool EspressoCaliIteration::active_ |
Definition at line 125 of file caliper_utils.hpp.
Referenced by EspressoCaliIteration(), and ~EspressoCaliIteration().
| cali_id_t EspressoCaliIteration::iter_attr_ |
Definition at line 124 of file caliper_utils.hpp.
Referenced by EspressoCaliIteration(), and ~EspressoCaliIteration().