FastJet 3.4.1
|
(would) provides a thread-safe counter (with CXX11 features) More...
#include <fastjet/internal/thread_safety_helpers.hh>
Public Member Functions | |
AtomicCounter () | |
default ctor More... | |
AtomicCounter (const T &count) | |
ctor with initialisation More... | |
AtomicCounter (const AtomicCounter &other) | |
copy ctor More... | |
operator T () const | |
for a more friendly usage, overload the type cast More... | |
T | get () const |
get the count More... | |
void | set (const T new_value) |
set the counter to a given value More... | |
T | step () |
step the counter and return the value just before it was stepped More... | |
T | operator++ () |
override the ++ operator prefix version More... | |
T | operator++ (int) |
override the ++ operator postfix version More... | |
(would) provides a thread-safe counter (with CXX11 features)
Definition at line 179 of file thread_safety_helpers.hh.
|
inline |
default ctor
Definition at line 182 of file thread_safety_helpers.hh.
|
inline |
ctor with initialisation
Definition at line 185 of file thread_safety_helpers.hh.
|
inline |
copy ctor
Definition at line 188 of file thread_safety_helpers.hh.
|
inline |
for a more friendly usage, overload the type cast
This will (likely) allow a transparent usage w or wo C++11 features enabled
Definition at line 194 of file thread_safety_helpers.hh.
|
inline |
get the count
Definition at line 197 of file thread_safety_helpers.hh.
|
inline |
set the counter to a given value
Definition at line 200 of file thread_safety_helpers.hh.
|
inline |
step the counter and return the value just before it was stepped
Definition at line 205 of file thread_safety_helpers.hh.
|
inline |
override the ++ operator prefix version
Definition at line 213 of file thread_safety_helpers.hh.
|
inline |
override the ++ operator postfix version
Definition at line 219 of file thread_safety_helpers.hh.