Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::substrate::PerThreadStorage< T > Class Template Reference

#include <PerThreadStorage.h>

Public Member Functions

template<typename... Args>
 PerThreadStorage (Args &&...args)
 
 PerThreadStorage (PerThreadStorage &&rhs)
 
 ~PerThreadStorage ()
 
PerThreadStorageoperator= (PerThreadStorage &&rhs)
 
T * getLocal ()
 
const T * getLocal () const
 
T * getLocal (unsigned int thread)
 Like getLocal() but optimized for when you already know the thread id. More...
 
const T * getLocal (unsigned int thread) const
 
T * getRemote (unsigned int thread)
 
const T * getRemote (unsigned int thread) const
 
unsigned size () const
 

Protected Member Functions

void destruct ()
 

Protected Attributes

PerBackendb
 
unsigned offset
 

Constructor & Destructor Documentation

template<typename T>
template<typename... Args>
galois::substrate::PerThreadStorage< T >::PerThreadStorage ( Args &&...  args)
inline
template<typename T>
galois::substrate::PerThreadStorage< T >::PerThreadStorage ( PerThreadStorage< T > &&  rhs)
inline
template<typename T>
galois::substrate::PerThreadStorage< T >::~PerThreadStorage ( )
inline

Member Function Documentation

template<typename T>
void galois::substrate::PerThreadStorage< T >::destruct ( )
inlineprotected
template<typename T>
T* galois::substrate::PerThreadStorage< T >::getLocal ( )
inline
template<typename T>
const T* galois::substrate::PerThreadStorage< T >::getLocal ( ) const
inline
template<typename T>
T* galois::substrate::PerThreadStorage< T >::getLocal ( unsigned int  thread)
inline

Like getLocal() but optimized for when you already know the thread id.

template<typename T>
const T* galois::substrate::PerThreadStorage< T >::getLocal ( unsigned int  thread) const
inline
template<typename T>
T* galois::substrate::PerThreadStorage< T >::getRemote ( unsigned int  thread)
inline
template<typename T>
const T* galois::substrate::PerThreadStorage< T >::getRemote ( unsigned int  thread) const
inline
template<typename T>
PerThreadStorage& galois::substrate::PerThreadStorage< T >::operator= ( PerThreadStorage< T > &&  rhs)
inline
template<typename T>
unsigned galois::substrate::PerThreadStorage< T >::size ( ) const
inline

Member Data Documentation

template<typename T>
PerBackend* galois::substrate::PerThreadStorage< T >::b
protected
template<typename T>
unsigned galois::substrate::PerThreadStorage< T >::offset
protected

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