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

#include <AMReX_GpuAllocators.H>

Inheritance diagram for amrex::PolymorphicArenaAllocator< T >:
amrex::ArenaAllocatorBase< T, PolymorphicArenaWrapper > amrex::PODVector< char, amrex::PolymorphicArenaAllocator< char > >

Public Member Functions

constexpr PolymorphicArenaAllocator ()=default
 
constexpr PolymorphicArenaAllocator (Arena *a_arena)
 
void setArena (Arena *a_ar) noexcept
 
- Public Member Functions inherited from amrex::ArenaAllocatorBase< T, PolymorphicArenaWrapper >
constexpr ArenaAllocatorBase ()=default
 
constexpr ArenaAllocatorBase (PolymorphicArenaWrapper a_ar)
 
T * allocate (std::size_t n)
 
FatPtr< T > allocate_in_place (T *p, std::size_t nmin, std::size_t nmax)
 
T * shrink_in_place (T *p, std::size_t n)
 
void deallocate (T *ptr, std::size_t)
 
Arenaarena () const noexcept
 

Additional Inherited Members

- Public Types inherited from amrex::ArenaAllocatorBase< T, PolymorphicArenaWrapper >
using value_type = T
 
using arena_wrapper_type = PolymorphicArenaWrapper
 

Constructor & Destructor Documentation

◆ PolymorphicArenaAllocator() [1/2]

template<typename T >
constexpr amrex::PolymorphicArenaAllocator< T >::PolymorphicArenaAllocator ( )
constexprdefault

◆ PolymorphicArenaAllocator() [2/2]

template<typename T >
constexpr amrex::PolymorphicArenaAllocator< T >::PolymorphicArenaAllocator ( Arena a_arena)
inlineexplicitconstexpr

Member Function Documentation

◆ setArena()

template<typename T >
void amrex::PolymorphicArenaAllocator< T >::setArena ( Arena a_ar)
inlinenoexcept

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