Equalizer 1.0
|
Thread-specific storage for a RefPtr. More...
#include <perThreadRef.h>
Public Member Functions | |
PerThreadRef () | |
Construct a new per-thread RefPtr. | |
~PerThreadRef () | |
Destruct a per-thread RefPtr. | |
PerThreadRef< T > & | operator= (RefPtr< T > data) |
Assign a RefPtr to the thread-local storage. | |
PerThreadRef< T > & | operator= (const PerThreadRef< T > &rhs) |
Assign a RefPtr to the thread-local storage. | |
RefPtr< const T > | get () const |
RefPtr< T > | get () |
T * | getPointer () |
T * | operator-> () |
const T * | operator-> () const |
bool | operator== (const PerThreadRef &rhs) const |
bool | operator== (const RefPtr< T > &rhs) const |
bool | operator!= (const RefPtr< T > &rhs) const |
bool | operator! () const |
bool | isValid () const |
Thread-specific storage for a RefPtr.
To instantiate the template code for this class, applications have to include pthread.h before this file. pthread.h is not automatically included to avoid hard to resolve type conflicts with other header files on Windows.
Definition at line 38 of file perThreadRef.h.
co::base::PerThreadRef< T >::PerThreadRef | ( | ) |
Construct a new per-thread RefPtr.
co::base::PerThreadRef< T >::~PerThreadRef | ( | ) |
Destruct a per-thread RefPtr.
RefPtr< const T > co::base::PerThreadRef< T >::get | ( | ) | const |
Referenced by co::base::PerThreadRef< T >::operator==().
RefPtr< T > co::base::PerThreadRef< T >::get | ( | ) |
T* co::base::PerThreadRef< T >::getPointer | ( | ) |
bool co::base::PerThreadRef< T >::isValid | ( | ) | const |
bool co::base::PerThreadRef< T >::operator! | ( | ) | const |
bool co::base::PerThreadRef< T >::operator!= | ( | const RefPtr< T > & | rhs | ) | const [inline] |
Definition at line 93 of file perThreadRef.h.
const T* co::base::PerThreadRef< T >::operator-> | ( | ) | const |
T* co::base::PerThreadRef< T >::operator-> | ( | ) |
PerThreadRef<T>& co::base::PerThreadRef< T >::operator= | ( | const PerThreadRef< T > & | rhs | ) |
Assign a RefPtr to the thread-local storage.
PerThreadRef<T>& co::base::PerThreadRef< T >::operator= | ( | RefPtr< T > | data | ) |
Assign a RefPtr to the thread-local storage.
bool co::base::PerThreadRef< T >::operator== | ( | const PerThreadRef< T > & | rhs | ) | const [inline] |
Definition at line 79 of file perThreadRef.h.
References co::base::PerThreadRef< T >::get().
bool co::base::PerThreadRef< T >::operator== | ( | const RefPtr< T > & | rhs | ) | const [inline] |
Definition at line 86 of file perThreadRef.h.