- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# QThreadStorage< T > Class Template Reference

Search for all occurrences

## Detailed Description

### template<class T>
class QThreadStorage< T >

Definition at line 125 of file qthreadstorage.h.

`#include <qthreadstorage.h>`

List of all members.

## Public Member Functions
| QThreadStorage ()
| ~QThreadStorage ()
bool | hasLocalData () const
T & | localData ()
T | localData () const
void | setLocalData (T t)

## Constructor & Destructor Documentation

QThreadStorage | ( |  | ) | `[inline]`

Definition at line 136 of file qthreadstorage.h.

    : d(deleteData) { }

~QThreadStorage | ( |  | ) | `[inline]`

Definition at line 137 of file qthreadstorage.h.

    { }

## Member Function Documentation

bool hasLocalData | ( |  | ) | const `[inline]`

Search for all occurrences

Definition at line 139 of file qthreadstorage.h.

        { return d.get() != 0; }

T& localData | ( |  | ) | `[inline]`

Search for all occurrences

Definition at line 142 of file qthreadstorage.h.

        { return qThreadStorage_localData(d, reinterpret_cast<T*>(0)); }

T localData | ( |  | ) | const `[inline]`

Search for all occurrences

Definition at line 144 of file qthreadstorage.h.

        { return qThreadStorage_localData_const(d, reinterpret_cast<T*>(0)); }

void setLocalData | ( | T | t | ) | `[inline]`

Search for all occurrences

Definition at line 147 of file qthreadstorage.h.

        { qThreadStorage_setLocalData(d, &t); }

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

- QtCore/qthreadstorage.h