| 
    FastJet 3.4.3
    
   | 
 
(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   | |
| 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 | 
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.