CLucene - a full-featured, c++ search engine
API Documentation


lucene::util::ThreadLocal< T, _deletor > Class Template Reference

#include <ThreadLocal.h>

Inheritance diagram for lucene::util::ThreadLocal< T, _deletor >:
lucene::util::ThreadLocalBase lucene::debug::LuceneBase

List of all members.

Public Member Functions

 ThreadLocal ()
 ~ThreadLocal ()
get ()
void setNull ()
 Call this function to clear the local thread data for this ThreadLocal.
void set (T t)

template<typename T, typename _deletor>
class lucene::util::ThreadLocal< T, _deletor >


Constructor & Destructor Documentation

template<typename T , typename _deletor >
lucene::util::ThreadLocal< T, _deletor >::ThreadLocal (  )  [inline]
template<typename T , typename _deletor >
lucene::util::ThreadLocal< T, _deletor >::~ThreadLocal (  )  [inline]

Member Function Documentation

template<typename T , typename _deletor >
T lucene::util::ThreadLocal< T, _deletor >::get (  )  [inline]
template<typename T, typename _deletor >
void lucene::util::ThreadLocal< T, _deletor >::set ( t  )  [inline]
template<typename T , typename _deletor >
void lucene::util::ThreadLocal< T, _deletor >::setNull (  )  [inline, virtual]

Call this function to clear the local thread data for this ThreadLocal.

Calling set(NULL) does the same thing, except this function is virtual and can be called without knowing the template.

Implements lucene::util::ThreadLocalBase.


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

clucene.sourceforge.net