Lunchbox
1.4.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 36 of file perThreadRef.h.
lunchbox::PerThreadRef< T >::PerThreadRef | ( | ) |
Construct a new per-thread RefPtr.
lunchbox::PerThreadRef< T >::~PerThreadRef | ( | ) |
Destruct a per-thread RefPtr.
RefPtr< const T > lunchbox::PerThreadRef< T >::get | ( | ) | const |
Referenced by lunchbox::PerThreadRef< T >::operator==().
RefPtr< T > lunchbox::PerThreadRef< T >::get | ( | ) |
T* lunchbox::PerThreadRef< T >::getPointer | ( | ) |
bool lunchbox::PerThreadRef< T >::isValid | ( | ) | const |
bool lunchbox::PerThreadRef< T >::operator! | ( | ) | const |
bool lunchbox::PerThreadRef< T >::operator!= | ( | const RefPtr< T > & | rhs | ) | const [inline] |
Definition at line 91 of file perThreadRef.h.
T* lunchbox::PerThreadRef< T >::operator-> | ( | ) |
const T* lunchbox::PerThreadRef< T >::operator-> | ( | ) | const |
PerThreadRef<T>& lunchbox::PerThreadRef< T >::operator= | ( | RefPtr< T > | data | ) |
Assign a RefPtr to the thread-local storage.
PerThreadRef<T>& lunchbox::PerThreadRef< T >::operator= | ( | const PerThreadRef< T > & | rhs | ) |
Assign a RefPtr to the thread-local storage.
bool lunchbox::PerThreadRef< T >::operator== | ( | const PerThreadRef< T > & | rhs | ) | const [inline] |
Definition at line 77 of file perThreadRef.h.
References lunchbox::PerThreadRef< T >::get().
bool lunchbox::PerThreadRef< T >::operator== | ( | const RefPtr< T > & | rhs | ) | const [inline] |
Definition at line 84 of file perThreadRef.h.