UT_ThreadSpecificValue< T > Class Template Reference

#include <UT_ThreadSpecificValue.h>

List of all members.

Classes

class  const_iterator
class  iterator

Public Member Functions

 UT_ThreadSpecificValue ()
 ~UT_ThreadSpecificValue ()
T & get ()
T & local ()
const T & get () const
const T & local () const
T & getValueForThread (int thread_index)
const T & getValueForThread (int thread_index) const
int maxThreadsSeen () const
const_iterator begin () const
 begin() const iterator
const_iterator end () const
 end() const iterator
iterator begin ()
 begin() iterator
iterator end ()
 end() iterator


Detailed Description

template<typename T>
class UT_ThreadSpecificValue< T >

Definition at line 64 of file UT_ThreadSpecificValue.h.


Constructor & Destructor Documentation

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

Definition at line 101 of file UT_ThreadSpecificValue.h.

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

Definition at line 107 of file UT_ThreadSpecificValue.h.


Member Function Documentation

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

begin() iterator

Definition at line 331 of file UT_ThreadSpecificValue.h.

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

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

end() iterator

Definition at line 334 of file UT_ThreadSpecificValue.h.

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

end() const iterator

Definition at line 326 of file UT_ThreadSpecificValue.h.

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

Definition at line 136 of file UT_ThreadSpecificValue.h.

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

Definition at line 122 of file UT_ThreadSpecificValue.h.

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

Definition at line 169 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 154 of file UT_ThreadSpecificValue.h.

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

Definition at line 148 of file UT_ThreadSpecificValue.h.

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

Definition at line 134 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. Be careful to index taking into account UT_Thread::getFirstSequentialThreadIndex() though.

Definition at line 189 of file UT_ThreadSpecificValue.h.


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

Generated on Mon Jan 28 00:30:21 2013 for HDK by  doxygen 1.5.9