HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_ThreadSpecificValue< T > Class Template Reference

#include <UT_ThreadSpecificValue.h>

Classes

class  const_iterator
 
class  iterator
 

Public Types

typedef T value_type
 

Public Member Functions

 UT_ThreadSpecificValue ()
 
 ~UT_ThreadSpecificValue ()
 
TgetValueForThread (int thread_index)
 
const TgetValueForThread (int thread_index) const
 
Tget ()
 
Tlocal ()
 
const Tget () const
 
const Tlocal () const
 
const_iterator begin () const
 begin() const iterator More...
 
const_iterator end () const
 end() const iterator More...
 
iterator begin ()
 begin() iterator More...
 
iterator end ()
 end() iterator More...
 
int maxThreadsSeen () const
 
void clear ()
 Clear values for all threads, resetting to the initial state. More...
 
exint getMemoryUsage (bool inclusive) const
 

Friends

class const_iterator
 

Detailed Description

template<typename T>
class UT_ThreadSpecificValue< T >

Definition at line 50 of file UT_ThreadSpecificValue.h.

Member Typedef Documentation

template<typename T>
typedef T UT_ThreadSpecificValue< T >::value_type

Definition at line 89 of file UT_ThreadSpecificValue.h.

Constructor & Destructor Documentation

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

Definition at line 91 of file UT_ThreadSpecificValue.h.

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

Definition at line 108 of file UT_ThreadSpecificValue.h.

Member Function Documentation

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

begin() const iterator

Definition at line 289 of file UT_ThreadSpecificValue.h.

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

begin() iterator

Definition at line 296 of file UT_ThreadSpecificValue.h.

template<typename T>
void UT_ThreadSpecificValue< T >::clear ( void  )
inline

Clear values for all threads, resetting to the initial state.

Definition at line 313 of file UT_ThreadSpecificValue.h.

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

end() const iterator

Definition at line 292 of file UT_ThreadSpecificValue.h.

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

end() iterator

Definition at line 299 of file UT_ThreadSpecificValue.h.

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

Definition at line 161 of file UT_ThreadSpecificValue.h.

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

Definition at line 164 of file UT_ThreadSpecificValue.h.

template<typename T>
exint UT_ThreadSpecificValue< T >::getMemoryUsage ( bool  inclusive) const
inline

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

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

Definition at line 144 of file UT_ThreadSpecificValue.h.

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

Definition at line 162 of file UT_ThreadSpecificValue.h.

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

Definition at line 165 of file UT_ThreadSpecificValue.h.

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

The number of values that require iteration. Don't use this for iteration - use iterators instead.

Definition at line 304 of file UT_ThreadSpecificValue.h.

Friends And Related Function Documentation

template<typename T>
friend class const_iterator
friend

Definition at line 352 of file UT_ThreadSpecificValue.h.


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