| 
    FastJet
    3.4.0-beta.1
    
   | 
 
(would) provides a thread-safe counter (with CXX11 features) More...
#include <fastjet/internal/thread_safety_helpers.hh>
Public Member Functions | |
| AtomicCounter () | |
| default ctor  | |
| AtomicCounter (const T &count) | |
| ctor with initialisation  | |
| AtomicCounter (const AtomicCounter &other) | |
| copy ctor  | |
| operator T () const | |
| for a more friendly usage, overload the type cast  More... | |
| T | get () const | 
| get the count  | |
| void | set (const T new_value) | 
| set the counter to a given value  | |
| T | step () | 
| step the counter and return the value just before it was stepped  | |
| T | operator++ () | 
| override the ++ operator prefix version  | |
| T | operator++ (int) | 
| override the ++ operator postfix version  | |
(would) provides a thread-safe counter (with CXX11 features)
Definition at line 179 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.