Block-Structured AMR Software Framework
amrex::PolymorphicAllocator< T > Class Template Reference

#include <AMReX_GpuAllocators.H>

Public Types

using value_type = T
 

Public Member Functions

 PolymorphicAllocator ()
 
value_typeallocate (std::size_t n)
 
void deallocate (value_type *ptr, std::size_t)
 

Public Attributes

bool m_use_gpu_aware_mpi
 

Friends

template<class U , class V >
bool operator== (PolymorphicAllocator< U > const &a, PolymorphicAllocator< V > const &b) noexcept
 
template<class U , class V >
bool operator!= (PolymorphicAllocator< U > const &a, PolymorphicAllocator< V > const &b) noexcept
 

Member Typedef Documentation

◆ value_type

template<typename T >
using amrex::PolymorphicAllocator< T >::value_type = T

Constructor & Destructor Documentation

◆ PolymorphicAllocator()

template<typename T >
amrex::PolymorphicAllocator< T >::PolymorphicAllocator ( )
inline

Member Function Documentation

◆ allocate()

template<typename T >
value_type* amrex::PolymorphicAllocator< T >::allocate ( std::size_t  n)
inline

◆ deallocate()

template<typename T >
void amrex::PolymorphicAllocator< T >::deallocate ( value_type ptr,
std::size_t   
)
inline

Friends And Related Function Documentation

◆ operator!=

template<typename T >
template<class U , class V >
bool operator!= ( PolymorphicAllocator< U > const &  a,
PolymorphicAllocator< V > const &  b 
)
friend

◆ operator==

template<typename T >
template<class U , class V >
bool operator== ( PolymorphicAllocator< U > const &  a,
PolymorphicAllocator< V > const &  b 
)
friend

Member Data Documentation

◆ m_use_gpu_aware_mpi

template<typename T >
bool amrex::PolymorphicAllocator< T >::m_use_gpu_aware_mpi

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