Lunchbox
1.11.0
|
Thread-specific storage for a RefPtr. More...
#include <perThreadRef.h>
Public Member Functions | |
PerThreadRef () | |
Construct a new per-thread RefPtr. More... | |
~PerThreadRef () | |
Destruct a per-thread RefPtr. More... | |
PerThreadRef< T > & | operator= (RefPtr< T > data) |
Assign a RefPtr to the thread-local storage. More... | |
PerThreadRef< T > & | operator= (const PerThreadRef< T > &rhs) |
Assign a RefPtr to the thread-local storage. More... | |
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.
Definition at line 27 of file perThreadRef.h.
lunchbox::PerThreadRef< T >::PerThreadRef | ( | ) |
lunchbox::PerThreadRef< T >::~PerThreadRef | ( | ) |
RefPtr< const T > lunchbox::PerThreadRef< T >::get | ( | ) | const |
Definition at line 136 of file perThreadRef.h.
Referenced by lunchbox::PerThreadRef< T >::operator=(), and lunchbox::PerThreadRef< T >::operator==().
RefPtr< T > lunchbox::PerThreadRef< T >::get | ( | ) |
Definition at line 141 of file perThreadRef.h.
T * lunchbox::PerThreadRef< T >::getPointer | ( | ) |
Definition at line 147 of file perThreadRef.h.
bool lunchbox::PerThreadRef< T >::isValid | ( | ) | const |
Definition at line 173 of file perThreadRef.h.
bool lunchbox::PerThreadRef< T >::operator! | ( | ) | const |
Definition at line 167 of file perThreadRef.h.
|
inline |
Definition at line 82 of file perThreadRef.h.
T * lunchbox::PerThreadRef< T >::operator-> | ( | ) |
Definition at line 153 of file perThreadRef.h.
const T * lunchbox::PerThreadRef< T >::operator-> | ( | ) | const |
Definition at line 160 of file perThreadRef.h.
PerThreadRef< T > & lunchbox::PerThreadRef< T >::operator= | ( | RefPtr< T > | data | ) |
Assign a RefPtr to the thread-local storage.
Definition at line 112 of file perThreadRef.h.
References lunchbox::RefPtr< T >::get().
PerThreadRef< T > & lunchbox::PerThreadRef< T >::operator= | ( | const PerThreadRef< T > & | rhs | ) |
Assign a RefPtr to the thread-local storage.
Definition at line 124 of file perThreadRef.h.
References lunchbox::PerThreadRef< T >::get(), and lunchbox::TLS::get().
|
inline |
Definition at line 68 of file perThreadRef.h.
References lunchbox::PerThreadRef< T >::get().
|
inline |
Definition at line 75 of file perThreadRef.h.