Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | List of all members
Stokhos::aligned_allocator< T > Class Template Reference

An aligned STL allocator. More...

#include <Stokhos_MemoryTraits.hpp>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef Stokhos::MemoryTraits
< Kokkos::HostSpace > 
Traits
 

Public Member Functions

 aligned_allocator ()
 
template<class U >
 aligned_allocator (const aligned_allocator< U > &)
 
size_type max_size () const
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type n, const void *=0)
 
void deallocate (pointer p, size_type)
 
void construct (pointer p, const_reference val)
 
void destroy (pointer p)
 

Detailed Description

template<typename T>
class Stokhos::aligned_allocator< T >

An aligned STL allocator.

Definition at line 129 of file Stokhos_MemoryTraits.hpp.

Member Typedef Documentation

template<typename T >
typedef T Stokhos::aligned_allocator< T >::value_type

Definition at line 132 of file Stokhos_MemoryTraits.hpp.

template<typename T >
typedef T* Stokhos::aligned_allocator< T >::pointer

Definition at line 133 of file Stokhos_MemoryTraits.hpp.

template<typename T >
typedef const T* Stokhos::aligned_allocator< T >::const_pointer

Definition at line 134 of file Stokhos_MemoryTraits.hpp.

template<typename T >
typedef T& Stokhos::aligned_allocator< T >::reference

Definition at line 135 of file Stokhos_MemoryTraits.hpp.

template<typename T >
typedef const T& Stokhos::aligned_allocator< T >::const_reference

Definition at line 136 of file Stokhos_MemoryTraits.hpp.

template<typename T >
typedef size_t Stokhos::aligned_allocator< T >::size_type

Definition at line 137 of file Stokhos_MemoryTraits.hpp.

template<typename T >
typedef std::ptrdiff_t Stokhos::aligned_allocator< T >::difference_type

Definition at line 138 of file Stokhos_MemoryTraits.hpp.

template<typename T >
typedef Stokhos::MemoryTraits< Kokkos::HostSpace > Stokhos::aligned_allocator< T >::Traits

Definition at line 140 of file Stokhos_MemoryTraits.hpp.

Constructor & Destructor Documentation

template<typename T >
Stokhos::aligned_allocator< T >::aligned_allocator ( )
inline

Definition at line 144 of file Stokhos_MemoryTraits.hpp.

template<typename T >
template<class U >
Stokhos::aligned_allocator< T >::aligned_allocator ( const aligned_allocator< U > &  )
inline

Definition at line 146 of file Stokhos_MemoryTraits.hpp.

Member Function Documentation

template<typename T >
size_type Stokhos::aligned_allocator< T >::max_size ( ) const
inline

Definition at line 148 of file Stokhos_MemoryTraits.hpp.

template<typename T >
pointer Stokhos::aligned_allocator< T >::address ( reference  x) const
inline

Definition at line 152 of file Stokhos_MemoryTraits.hpp.

template<typename T >
const_pointer Stokhos::aligned_allocator< T >::address ( const_reference  x) const
inline

Definition at line 154 of file Stokhos_MemoryTraits.hpp.

template<typename T >
pointer Stokhos::aligned_allocator< T >::allocate ( size_type  n,
const void *  = 0 
)
inline

Definition at line 156 of file Stokhos_MemoryTraits.hpp.

template<typename T >
void Stokhos::aligned_allocator< T >::deallocate ( pointer  p,
size_type   
)
inline

Definition at line 163 of file Stokhos_MemoryTraits.hpp.

template<typename T >
void Stokhos::aligned_allocator< T >::construct ( pointer  p,
const_reference  val 
)
inline

Definition at line 165 of file Stokhos_MemoryTraits.hpp.

template<typename T >
void Stokhos::aligned_allocator< T >::destroy ( pointer  p)
inline

Definition at line 167 of file Stokhos_MemoryTraits.hpp.


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