|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
Dune::Fem::ThreadSafeValue< T > Class Template Reference
ThreadSafeValue realizes thread safety for a given variable by creating an instance of this variable for each thread. More...
#include <dune/fem/misc/threads/threadsafevalue.hh>
Inheritance diagram for Dune::Fem::ThreadSafeValue< T >:

Public Types | |
| typedef T | ValueType |
| type of value to be thread safe | |
Public Member Functions | |
| template<class ... Args> | |
| ThreadSafeValue (Args &&...args) | |
| constructor initializing values for all threads given a init value | |
| ThreadSafeValue () | |
| default constructor | |
| size_t | size () const |
| return number of threads | |
| ValueType & | operator* () |
| return reference to thread private value | |
| const ValueType & | operator* () const |
| return reference to thread private value | |
| operator const ValueType & () const | |
| operator ValueType & () | |
| ValueType & | operator[] (const unsigned int thread) |
| return reference to private value for given thread number | |
| const ValueType & | operator[] (const unsigned int thread) const |
| return reference to private value for given thread number | |
Detailed Description
template<class T>
class Dune::Fem::ThreadSafeValue< T >
class Dune::Fem::ThreadSafeValue< T >
ThreadSafeValue realizes thread safety for a given variable by creating an instance of this variable for each thread.
Member Typedef Documentation
◆ ValueType
template<class T >
| typedef T Dune::Fem::ThreadSafeValue< T >::ValueType |
type of value to be thread safe
Constructor & Destructor Documentation
◆ ThreadSafeValue() [1/2]
template<class T >
template<class ... Args>
|
inline |
constructor initializing values for all threads given a init value
◆ ThreadSafeValue() [2/2]
template<class T >
|
inline |
default constructor
Member Function Documentation
◆ operator const ValueType &()
template<class T >
|
inline |
◆ operator ValueType &()
template<class T >
|
inline |
◆ operator*() [1/2]
template<class T >
|
inline |
return reference to thread private value
◆ operator*() [2/2]
template<class T >
|
inline |
return reference to thread private value
◆ operator[]() [1/2]
template<class T >
|
inline |
return reference to private value for given thread number
◆ operator[]() [2/2]
template<class T >
|
inline |
return reference to private value for given thread number
◆ size()
template<class T >
|
inline |
return number of threads
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8