#include <BoostThreads.hh>
Collaboration diagram for log4cpp::threading::ThreadLocalDataHolder< T >:

Public Types | |
| typedef T | data_type |
| typedef T | data_type |
| typedef T | data_type |
Public Member Functions | |
| T * | get () const |
| T * | operator-> () const |
| T & | operator * () const |
| T * | release () |
| void | reset (T *p=NULL) |
| ThreadLocalDataHolder () | |
| ~ThreadLocalDataHolder () | |
| T * | get () const |
| T * | operator-> () const |
| T & | operator * () const |
| T * | release () |
| void | reset (T *p=NULL) |
| ThreadLocalDataHolder () | |
| ~ThreadLocalDataHolder () | |
| T * | get () const |
| Obtains the Object held for the current thread. | |
| T * | operator-> () const |
| Obtains the Object held for the current thread. | |
| T & | operator * () const |
| Obtains the Object held for the current thread. | |
| T * | release () |
| Releases the Object held for the current thread. | |
| void | reset (T *p=NULL) |
| Sets a new Object to be held for the current thread. | |
| ThreadLocalDataHolder () | |
| ~ThreadLocalDataHolder () | |
| T * | get () const |
| Obtains the Object held for the current thread. | |
| T * | operator-> () const |
| Obtains the Object held for the current thread. | |
| T & | operator * () const |
| Obtains the Object held for the current thread. | |
| T * | release () |
| Releases the Object held for the current thread. | |
| void | reset (T *p=NULL) |
| Sets a new Object to be held for the current thread. | |
| ThreadLocalDataHolder () | |
| ~ThreadLocalDataHolder () | |
| T * | get () const |
| T * | operator-> () const |
| T & | operator * () const |
| T * | release () |
| void | reset (T *p=NULL) |
Static Public Member Functions | |
| static void | freeHolder (void *p) |
Classes | |
| class | Holder |
for each thread a ThreadLocalDataHolder holds 0 or 1 instance of T. The held object must be heap allocated and will be deleted upon termination of the thread to which it belongs.
| typedef T log4cpp::threading::ThreadLocalDataHolder< T >::data_type |
| typedef T log4cpp::threading::ThreadLocalDataHolder< T >::data_type |
| typedef T log4cpp::threading::ThreadLocalDataHolder< T >::data_type |
| log4cpp::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder | ( | ) | [inline] |
| log4cpp::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder | ( | ) | [inline] |
| log4cpp::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder | ( | ) | [inline] |
| log4cpp::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder | ( | ) | [inline] |
| log4cpp::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder | ( | ) | [inline] |
| log4cpp::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder | ( | ) | [inline] |
| log4cpp::threading::ThreadLocalDataHolder< T >::ThreadLocalDataHolder | ( | ) | [inline] |
| log4cpp::threading::ThreadLocalDataHolder< T >::~ThreadLocalDataHolder | ( | ) | [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::get | ( | ) | const [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::operator-> | ( | ) | const [inline] |
| T& log4cpp::threading::ThreadLocalDataHolder< T >::operator * | ( | ) | const [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::release | ( | ) | [inline] |
| void log4cpp::threading::ThreadLocalDataHolder< T >::reset | ( | T * | p = NULL |
) | [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::get | ( | ) | const [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::operator-> | ( | ) | const [inline] |
| T& log4cpp::threading::ThreadLocalDataHolder< T >::operator * | ( | ) | const [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::release | ( | ) | [inline] |
| void log4cpp::threading::ThreadLocalDataHolder< T >::reset | ( | T * | p = NULL |
) | [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::get | ( | ) | const [inline] |
Obtains the Object held for the current thread.
| T* log4cpp::threading::ThreadLocalDataHolder< T >::operator-> | ( | ) | const [inline] |
Obtains the Object held for the current thread.
Initially each thread holds NULL.
| T& log4cpp::threading::ThreadLocalDataHolder< T >::operator * | ( | ) | const [inline] |
Obtains the Object held for the current thread.
| T* log4cpp::threading::ThreadLocalDataHolder< T >::release | ( | ) | [inline] |
Releases the Object held for the current thread.
| void log4cpp::threading::ThreadLocalDataHolder< T >::reset | ( | T * | p = NULL |
) | [inline] |
Sets a new Object to be held for the current thread.
A previously set Object will be deleted.
| p | the new object to hold. |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::get | ( | ) | const [inline] |
Obtains the Object held for the current thread.
| T* log4cpp::threading::ThreadLocalDataHolder< T >::operator-> | ( | ) | const [inline] |
Obtains the Object held for the current thread.
Initially each thread holds NULL.
| T& log4cpp::threading::ThreadLocalDataHolder< T >::operator * | ( | ) | const [inline] |
Obtains the Object held for the current thread.
| T* log4cpp::threading::ThreadLocalDataHolder< T >::release | ( | ) | [inline] |
Releases the Object held for the current thread.
| void log4cpp::threading::ThreadLocalDataHolder< T >::reset | ( | T * | p = NULL |
) | [inline] |
Sets a new Object to be held for the current thread.
A previously set Object will be deleted.
| p | the new object to hold. |
| static void log4cpp::threading::ThreadLocalDataHolder< T >::freeHolder | ( | void * | p | ) | [inline, static] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::get | ( | ) | const [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::operator-> | ( | ) | const [inline] |
| T& log4cpp::threading::ThreadLocalDataHolder< T >::operator * | ( | ) | const [inline] |
| T* log4cpp::threading::ThreadLocalDataHolder< T >::release | ( | ) | [inline] |
| void log4cpp::threading::ThreadLocalDataHolder< T >::reset | ( | T * | p = NULL |
) | [inline] |
1.5.2