BFLibCPP 0.1
CPP Library
Loading...
Searching...
No Matches
BF::Atomic< T > Class Template Reference

#include <atomic.hpp>

Inheritance diagram for BF::Atomic< T >:
Collaboration diagram for BF::Atomic< T >:

Public Member Functions

 Atomic ()
 
 Atomic (T obj)
 
 ~Atomic ()
 
void unsafeset (T obj)
 
T & unsafeget ()
 
void set (T obj)
 
T & get ()
 
void lock ()
 
void unlock ()
 
Atomic< T > & operator= (const T &obj)
 
Atomic< T > & operator= (const Atomic< T > &a)
 
bool operator== (const Atomic< T > &a)
 
bool operator!= (const Atomic< T > &a)
 
 operator T ()
 
- Public Member Functions inherited from BF::Object
 Object ()
 
 Object (Object &obj)
 
virtual ~Object ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BF::Object
static void retain (Object *obj)
 
static void release (Object *obj)
 
static int retainCount (Object *obj)
 
static int retainCount (Object &obj)
 

Constructor & Destructor Documentation

◆ Atomic() [1/2]

template<typename T >
BF::Atomic< T >::Atomic ( )
inline

◆ Atomic() [2/2]

template<typename T >
BF::Atomic< T >::Atomic ( T obj)
inline
Here is the call graph for this function:

◆ ~Atomic()

template<typename T >
BF::Atomic< T >::~Atomic ( )
inline

Member Function Documentation

◆ get()

template<typename T >
T & BF::Atomic< T >::get ( )
inline
Here is the call graph for this function:

◆ lock()

template<typename T >
void BF::Atomic< T >::lock ( )
inline

use unsafe getter and setter to access after this call

◆ operator T()

template<typename T >
BF::Atomic< T >::operator T ( )
inline
Here is the call graph for this function:

◆ operator!=()

template<typename T >
bool BF::Atomic< T >::operator!= ( const Atomic< T > & a)
inline

◆ operator=() [1/2]

template<typename T >
Atomic< T > & BF::Atomic< T >::operator= ( const Atomic< T > & a)
inline
Here is the call graph for this function:

◆ operator=() [2/2]

template<typename T >
Atomic< T > & BF::Atomic< T >::operator= ( const T & obj)
inline
Here is the call graph for this function:

◆ operator==()

template<typename T >
bool BF::Atomic< T >::operator== ( const Atomic< T > & a)
inline

◆ set()

template<typename T >
void BF::Atomic< T >::set ( T obj)
inline
Here is the call graph for this function:

◆ unlock()

template<typename T >
void BF::Atomic< T >::unlock ( )
inline

must call after lock()

◆ unsafeget()

template<typename T >
T & BF::Atomic< T >::unsafeget ( )
inline

◆ unsafeset()

template<typename T >
void BF::Atomic< T >::unsafeset ( T obj)
inline

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