#include <UT_ThreadSpecificValue.h>
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 | |
Definition at line 64 of file UT_ThreadSpecificValue.h.
| UT_ThreadSpecificValue< T >::UT_ThreadSpecificValue | ( | ) | [inline] |
Definition at line 101 of file UT_ThreadSpecificValue.h.
| UT_ThreadSpecificValue< T >::~UT_ThreadSpecificValue | ( | ) | [inline] |
Definition at line 107 of file UT_ThreadSpecificValue.h.
| iterator UT_ThreadSpecificValue< T >::begin | ( | ) | [inline] |
| const_iterator UT_ThreadSpecificValue< T >::begin | ( | ) | const [inline] |
| iterator UT_ThreadSpecificValue< T >::end | ( | ) | [inline] |
| const_iterator UT_ThreadSpecificValue< T >::end | ( | ) | const [inline] |
| const T& UT_ThreadSpecificValue< T >::get | ( | ) | const [inline] |
Definition at line 136 of file UT_ThreadSpecificValue.h.
| T& UT_ThreadSpecificValue< T >::get | ( | ) | [inline] |
Definition at line 122 of file UT_ThreadSpecificValue.h.
| const T& UT_ThreadSpecificValue< T >::getValueForThread | ( | int | thread_index | ) | const [inline] |
Definition at line 169 of file UT_ThreadSpecificValue.h.
| 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.
| const T& UT_ThreadSpecificValue< T >::local | ( | ) | const [inline] |
Definition at line 148 of file UT_ThreadSpecificValue.h.
| T& UT_ThreadSpecificValue< T >::local | ( | ) | [inline] |
Definition at line 134 of file UT_ThreadSpecificValue.h.
| 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.
1.5.9