Fermat
Public Methods | Public Members | List of all members
cugar::AtomicInt< intT > Struct Template Reference

Detailed description

template<typename intT>
struct cugar::AtomicInt< intT >

an atomic integer class

#include <atomics.h>

Public Methods

 AtomicInt ()
 constructor
 
 AtomicInt (const intT value)
 destructor
 
intT increment ()
 increment by one
 
intT decrement ()
 decrement by one
 
intT operator++ (int)
 increment by one
 
intT operator-- (int)
 decrement by one
 
intT operator++ ()
 increment by one
 
intT operator-- ()
 decrement by one
 
intT operator+= (const intT v)
 increment by v
 
intT operator-= (const intT v)
 decrement by v
 
bool operator== (const intT value)
 compare
 
bool operator!= (const intT value)
 
bool operator>= (const intT value)
 
bool operator<= (const intT value)
 
bool operator> (const intT value)
 
bool operator< (const intT value)
 

Public Members

volatile intT m_value
 

The documentation for this struct was generated from the following file: