libMesh::Threads::scalable_allocator< T > Class Template Reference

#include <threads_allocators.h>

Inheritance diagram for libMesh::Threads::scalable_allocator< T >:

Classes

struct  rebind
 

Public Types

typedef T * pointer
 
typedef const T * const_pointer
 
typedef T value_type
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T value_type
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 scalable_allocator ()
 
 scalable_allocator (const scalable_allocator &a)
 
template<typename U >
 scalable_allocator (const scalable_allocator< U > &a)
 
 scalable_allocator ()
 
 scalable_allocator (const scalable_allocator &a)
 
template<typename U >
 scalable_allocator (const scalable_allocator< U > &a)
 

Detailed Description

template<typename T>
class libMesh::Threads::scalable_allocator< T >

Scalable allocator to be used in multithreaded code chunks which allocate a lot of dynamic memory. This allocator can be faster than the std::allocator when there are multiple threads.

Just use std::allocator when the Threading Building Blocks is absent.

Definition at line 54 of file threads_allocators.h.

Member Typedef Documentation

template<typename T>
typedef const T* libMesh::Threads::scalable_allocator< T >::const_pointer

Definition at line 58 of file threads_allocators.h.

template<typename T>
typedef const T* libMesh::Threads::scalable_allocator< T >::const_pointer

Definition at line 97 of file threads_allocators.h.

template<typename T>
typedef ptrdiff_t libMesh::Threads::scalable_allocator< T >::difference_type

Definition at line 63 of file threads_allocators.h.

template<typename T>
typedef ptrdiff_t libMesh::Threads::scalable_allocator< T >::difference_type

Definition at line 102 of file threads_allocators.h.

template<typename T>
typedef T* libMesh::Threads::scalable_allocator< T >::pointer

Definition at line 57 of file threads_allocators.h.

template<typename T>
typedef T* libMesh::Threads::scalable_allocator< T >::pointer

Definition at line 96 of file threads_allocators.h.

template<typename T>
typedef size_t libMesh::Threads::scalable_allocator< T >::size_type

Definition at line 62 of file threads_allocators.h.

template<typename T>
typedef size_t libMesh::Threads::scalable_allocator< T >::size_type

Definition at line 101 of file threads_allocators.h.

template<typename T>
typedef T libMesh::Threads::scalable_allocator< T >::value_type

Definition at line 61 of file threads_allocators.h.

template<typename T>
typedef T libMesh::Threads::scalable_allocator< T >::value_type

Definition at line 100 of file threads_allocators.h.

Constructor & Destructor Documentation

template<typename T>
libMesh::Threads::scalable_allocator< T >::scalable_allocator ( )
inline

Definition at line 71 of file threads_allocators.h.

71  :
72  tbb::scalable_allocator<T>() {}
template<typename T>
libMesh::Threads::scalable_allocator< T >::scalable_allocator ( const scalable_allocator< T > &  a)
inline

Definition at line 74 of file threads_allocators.h.

74  :
75  tbb::scalable_allocator<T>(a) {}
template<typename T>
template<typename U >
libMesh::Threads::scalable_allocator< T >::scalable_allocator ( const scalable_allocator< U > &  a)
inline

Definition at line 78 of file threads_allocators.h.

78  :
79  tbb::scalable_allocator<T>(a) {}
template<typename T>
libMesh::Threads::scalable_allocator< T >::scalable_allocator ( )
inline

Definition at line 110 of file threads_allocators.h.

110  :
111  std::allocator<T>() {}
template<typename T>
libMesh::Threads::scalable_allocator< T >::scalable_allocator ( const scalable_allocator< T > &  a)
inline

Definition at line 113 of file threads_allocators.h.

113  :
114  std::allocator<T>(a) {}
template<typename T>
template<typename U >
libMesh::Threads::scalable_allocator< T >::scalable_allocator ( const scalable_allocator< U > &  a)
inline

Definition at line 117 of file threads_allocators.h.

117  :
118  std::allocator<T>(a) {}

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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:58:02 UTC

Hosted By:
SourceForge.net Logo