Definition at line 125 of file qthreadstorage.h.
#include <qthreadstorage.h>
Public Member Functions |
|
| QThreadStorage () | |
| ~QThreadStorage () | |
| bool | hasLocalData () const |
| T & | localData () |
| T | localData () const |
| void | setLocalData (T t) |
| QThreadStorage | ( | ) | [inline] |
Definition at line 136 of file qthreadstorage.h.
: d(deleteData) { }
| ~QThreadStorage | ( | ) | [inline] |
Definition at line 137 of file qthreadstorage.h.
{ }
| bool hasLocalData | ( | ) | const [inline] |
Definition at line 139 of file qthreadstorage.h.
{ return d.get() != 0; }
| T& localData | ( | ) | [inline] |
Definition at line 142 of file qthreadstorage.h.
{ return qThreadStorage_localData(d, reinterpret_cast<T*>(0)); }
| T localData | ( | ) | const [inline] |
Definition at line 144 of file qthreadstorage.h.
{ return qThreadStorage_localData_const(d, reinterpret_cast<T*>(0)); }
| void setLocalData | ( | T | t | ) | [inline] |
Definition at line 147 of file qthreadstorage.h.
{ qThreadStorage_setLocalData(d, &t); }