Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Stokhos::aligned_allocator< const T > Class Template Reference

An aligned STL allocator. More...

#include <Stokhos_MemoryTraits.hpp>

Inheritance diagram for Stokhos::aligned_allocator< const T >:

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef const T * pointer
 
typedef const T * const_pointer
 
typedef const T & reference
 
typedef const T & const_reference
 
typedef size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef Stokhos::MemoryTraits< Kokkos::HostSpace > Traits
 
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
 
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)
 
 aligned_allocator ()
 
 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< const T >

An aligned STL allocator.

Definition at line 204 of file Stokhos_MemoryTraits.hpp.

Member Typedef Documentation

◆ value_type [1/2]

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

Definition at line 207 of file Stokhos_MemoryTraits.hpp.

◆ pointer [1/2]

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

Definition at line 208 of file Stokhos_MemoryTraits.hpp.

◆ const_pointer [1/2]

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

Definition at line 209 of file Stokhos_MemoryTraits.hpp.

◆ reference [1/2]

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

Definition at line 210 of file Stokhos_MemoryTraits.hpp.

◆ const_reference [1/2]

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

Definition at line 211 of file Stokhos_MemoryTraits.hpp.

◆ size_type [1/2]

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

Definition at line 212 of file Stokhos_MemoryTraits.hpp.

◆ difference_type [1/2]

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

Definition at line 213 of file Stokhos_MemoryTraits.hpp.

◆ Traits [1/2]

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

Definition at line 215 of file Stokhos_MemoryTraits.hpp.

◆ value_type [2/2]

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

Definition at line 164 of file Stokhos_MemoryTraits.hpp.

◆ pointer [2/2]

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

Definition at line 165 of file Stokhos_MemoryTraits.hpp.

◆ const_pointer [2/2]

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

Definition at line 166 of file Stokhos_MemoryTraits.hpp.

◆ reference [2/2]

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

Definition at line 167 of file Stokhos_MemoryTraits.hpp.

◆ const_reference [2/2]

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

Definition at line 168 of file Stokhos_MemoryTraits.hpp.

◆ size_type [2/2]

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

Definition at line 169 of file Stokhos_MemoryTraits.hpp.

◆ difference_type [2/2]

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

Definition at line 170 of file Stokhos_MemoryTraits.hpp.

◆ Traits [2/2]

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

Definition at line 172 of file Stokhos_MemoryTraits.hpp.

Constructor & Destructor Documentation

◆ aligned_allocator() [1/4]

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

Definition at line 219 of file Stokhos_MemoryTraits.hpp.

◆ aligned_allocator() [2/4]

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

Definition at line 221 of file Stokhos_MemoryTraits.hpp.

◆ aligned_allocator() [3/4]

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

Definition at line 176 of file Stokhos_MemoryTraits.hpp.

◆ aligned_allocator() [4/4]

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

Definition at line 178 of file Stokhos_MemoryTraits.hpp.

Member Function Documentation

◆ max_size() [1/2]

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

Definition at line 223 of file Stokhos_MemoryTraits.hpp.

◆ address() [1/3]

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

Definition at line 227 of file Stokhos_MemoryTraits.hpp.

◆ allocate() [1/2]

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

Definition at line 229 of file Stokhos_MemoryTraits.hpp.

◆ deallocate() [1/2]

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

Definition at line 236 of file Stokhos_MemoryTraits.hpp.

◆ construct() [1/2]

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

Definition at line 238 of file Stokhos_MemoryTraits.hpp.

◆ destroy() [1/2]

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

Definition at line 240 of file Stokhos_MemoryTraits.hpp.

◆ max_size() [2/2]

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

Definition at line 180 of file Stokhos_MemoryTraits.hpp.

◆ address() [2/3]

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

Definition at line 184 of file Stokhos_MemoryTraits.hpp.

◆ address() [3/3]

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

Definition at line 186 of file Stokhos_MemoryTraits.hpp.

◆ allocate() [2/2]

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

Definition at line 188 of file Stokhos_MemoryTraits.hpp.

◆ deallocate() [2/2]

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

Definition at line 195 of file Stokhos_MemoryTraits.hpp.

◆ construct() [2/2]

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

Definition at line 197 of file Stokhos_MemoryTraits.hpp.

◆ destroy() [2/2]

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

Definition at line 199 of file Stokhos_MemoryTraits.hpp.


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