Block-Structured AMR Software Framework
amrex::DataAllocator Struct Reference

#include <AMReX_DataAllocator.H>

Inheritance diagram for amrex::DataAllocator:
amrex::BaseFab< HYPRE_Int > amrex::BaseFab< AtomicInt > amrex::BaseFab< int > amrex::BaseFab< EBCellFlag > amrex::BaseFab< GpuComplex< Real > > amrex::BaseFab< PetscInt > amrex::BaseFab< char > amrex::BaseFab< Real > amrex::BaseFab< T > amrex::TableData< T, N, ORDER >

Public Member Functions

 DataAllocator () noexcept=default
 
 DataAllocator (Arena *ar) noexcept
 
void * alloc (std::size_t sz) const noexcept
 
void free (void *pt) const noexcept
 
Arenaarena () const noexcept
 

Public Attributes

Arenam_arena = nullptr
 

Constructor & Destructor Documentation

◆ DataAllocator() [1/2]

amrex::DataAllocator::DataAllocator ( )
defaultnoexcept

◆ DataAllocator() [2/2]

amrex::DataAllocator::DataAllocator ( Arena ar)
inlinenoexcept

Member Function Documentation

◆ alloc()

void* amrex::DataAllocator::alloc ( std::size_t  sz) const
inlinenoexcept

◆ arena()

Arena* amrex::DataAllocator::arena ( ) const
inlinenoexcept

◆ free()

void amrex::DataAllocator::free ( void *  pt) const
inlinenoexcept

Member Data Documentation

◆ m_arena

Arena* amrex::DataAllocator::m_arena = nullptr

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