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 ()
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]

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 ) [inline]

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