GEGELATI
tpgVertexInstrumentation.h
1#ifndef TPG_VERTEX_INSTRUMENTATION_H
2#define TPG_VERTEX_INSTRUMENTATION_H
3
4#include <atomic>
5#include <cstddef>
6
7namespace TPG {
13 {
14 public:
18 uint64_t getNbVisits() const;
19
24 void incrementNbVisits() const;
25
29 void reset() const;
30
31 protected:
38 {
39 }
40
44 mutable std::atomic_uint64_t nbVisits;
45 };
46} // namespace TPG
47
48#endif // !TPG_VERTEX_INSTRUMENTATION_H
Instrumentation code for TPGVertex class for instrumented execution.
Definition: tpgVertexInstrumentation.h:13
uint64_t getNbVisits() const
Get the number of time a TPGVertexInstrumentation was visited.
Definition: tpgVertexInstrumentation.cpp:4
TPGVertexInstrumentation()
Protected default constructor to forbid instanciation.
Definition: tpgVertexInstrumentation.h:37
void reset() const
Reset the instrumentation attributes.
Definition: tpgVertexInstrumentation.cpp:14
std::atomic_uint64_t nbVisits
Definition: tpgVertexInstrumentation.h:44
void incrementNbVisits() const
Add one to the number of visits for this TPGVertexInstrumented.
Definition: tpgVertexInstrumentation.cpp:9
Definition: tpgActionInstrumented.h:8