UT_ThreadSpecificValue< T > Class Template Reference

#include <UT_ThreadSpecificValue.h>

List of all members.

Public Member Functions

 UT_ThreadSpecificValue ()
 ~UT_ThreadSpecificValue ()
T & get ()
const T & get () const
T & getValueForThread (int thread_index)
const T & getValueForThread (int thread_index) const
int maxThreadsSeen () const


Detailed Description

template<typename T>
class UT_ThreadSpecificValue< T >

Definition at line 62 of file UT_ThreadSpecificValue.h.


Constructor & Destructor Documentation

template<typename T>
UT_ThreadSpecificValue< T >::UT_ThreadSpecificValue (  )  [inline]

Definition at line 65 of file UT_ThreadSpecificValue.h.

template<typename T>
UT_ThreadSpecificValue< T >::~UT_ThreadSpecificValue (  )  [inline]

Definition at line 73 of file UT_ThreadSpecificValue.h.


Member Function Documentation

template<typename T>
const T& UT_ThreadSpecificValue< T >::get (  )  const [inline]

Definition at line 101 of file UT_ThreadSpecificValue.h.

template<typename T>
T& UT_ThreadSpecificValue< T >::get (  )  [inline]

Definition at line 88 of file UT_ThreadSpecificValue.h.

template<typename T>
const T& UT_ThreadSpecificValue< T >::getValueForThread ( int  thread_index  )  const [inline]

Definition at line 134 of file UT_ThreadSpecificValue.h.

template<typename T>
T& UT_ThreadSpecificValue< T >::getValueForThread ( int  thread_index  )  [inline]

Access the value for a particular thread index. Note that the threads you care about may not have been assigned sequentially! Always loop up to the maxthreads value and be able to handle zero-initialized empty data.

Definition at line 118 of file UT_ThreadSpecificValue.h.

template<typename T>
int UT_ThreadSpecificValue< T >::maxThreadsSeen (  )  const [inline]

The highest value of thread index that has been seen by this threadspecific value. Iterating over 0..maxthreads-1 will allow you to check all thread output.

Definition at line 154 of file UT_ThreadSpecificValue.h.


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

Generated on Fri May 25 00:10:55 2012 for HDK by  doxygen 1.5.9