DDC 0.0.0

a discrete domain computation library

ddc::KokkosAllocator< T, MemorySpace > Class Template Reference

Classes

struct  rebind
 

Public Types

using value_type = T
 
using memory_space = MemorySpace
 

Public Member Functions

constexpr KokkosAllocator ()=default
 
constexpr KokkosAllocator (KokkosAllocator const &x)=default
 
constexpr KokkosAllocator (KokkosAllocator &&x) noexcept=default
 
template<class U >
constexpr KokkosAllocator (KokkosAllocator< U, MemorySpace > const &) noexcept
 
 ~KokkosAllocator ()=default
 
constexpr KokkosAllocatoroperator= (KokkosAllocator const &x)=default
 
constexpr KokkosAllocatoroperator= (KokkosAllocator &&x) noexcept=default
 
template<class U >
constexpr KokkosAllocatoroperator= (KokkosAllocator< U, MemorySpace > const &) noexcept
 
T * allocate (std::size_t n) const
 
T * allocate (std::string const &label, std::size_t n) const
 
void deallocate (T *p, std::size_t) const
 

Class Documentation

◆ ddc::KokkosAllocator::rebind

struct ddc::KokkosAllocator::rebind
template<class T, class MemorySpace>
template<class U>
struct ddc::KokkosAllocator< T, MemorySpace >::rebind< U >
Class Members
typedef KokkosAllocator< U, MemorySpace > other KokkosAllocator<U, MemorySpace>

Member Typedef Documentation

◆ value_type

template<class T , class MemorySpace >
using ddc::KokkosAllocator< T, MemorySpace >::value_type = T

◆ memory_space

Constructor & Destructor Documentation

◆ KokkosAllocator() [1/4]

template<class T , class MemorySpace >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( )
constexprdefault

◆ KokkosAllocator() [2/4]

template<class T , class MemorySpace >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< T, MemorySpace > const & x)
constexprdefault

◆ KokkosAllocator() [3/4]

template<class T , class MemorySpace >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< T, MemorySpace > && x)
constexprdefaultnoexcept

◆ KokkosAllocator() [4/4]

template<class T , class MemorySpace >
template<class U >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< U, MemorySpace > const & )
inlineexplicitconstexprnoexcept

◆ ~KokkosAllocator()

Member Function Documentation

◆ operator=() [1/3]

◆ operator=() [2/3]

◆ operator=() [3/3]

template<class T , class MemorySpace >
template<class U >
constexpr KokkosAllocator & ddc::KokkosAllocator< T, MemorySpace >::operator= ( KokkosAllocator< U, MemorySpace > const & )
inlineconstexprnoexcept

◆ allocate() [1/2]

template<class T , class MemorySpace >
T * ddc::KokkosAllocator< T, MemorySpace >::allocate ( std::size_t n) const
inline

◆ allocate() [2/2]

template<class T , class MemorySpace >
T * ddc::KokkosAllocator< T, MemorySpace >::allocate ( std::string const & label,
std::size_t n ) const
inline

◆ deallocate()

template<class T , class MemorySpace >
void ddc::KokkosAllocator< T, MemorySpace >::deallocate ( T * p,
std::size_t  ) const
inline

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