Chombo + EB  3.2
Public Member Functions | Private Types | Private Attributes | List of all members
ArSp::DefaultArrayAlloc< T > Class Template Reference

Default allocator. More...

#include <CHArray.H>

Public Member Functions

 DefaultArrayAlloc ()
 
T * allocate (const USz_t size)
 
T * allocate (void *const addr, const USz_t size)
 
void deallocate (T *p, const USz_t size)
 

Private Types

enum  AllocBy { AllocUndefined, AllocNew, AllocRaw }
 

Private Attributes

AllocBy m_allocBy
 

Detailed Description

template<typename T>
class ArSp::DefaultArrayAlloc< T >

Default allocator.

Allocators used by class array are simplified versions of the std::allocator and may contain member data. The following members are required:

The following members are optional:

Member Enumeration Documentation

◆ AllocBy

template<typename T >
enum ArSp::DefaultArrayAlloc::AllocBy
private
Enumerator
AllocUndefined 
AllocNew 
AllocRaw 

Constructor & Destructor Documentation

◆ DefaultArrayAlloc()

template<typename T >
ArSp::DefaultArrayAlloc< T >::DefaultArrayAlloc ( )
inline

Member Function Documentation

◆ allocate() [1/2]

template<typename T >
T* ArSp::DefaultArrayAlloc< T >::allocate ( const USz_t  size)
inline

References CH_assert, and IntVect::p().

◆ allocate() [2/2]

template<typename T >
T* ArSp::DefaultArrayAlloc< T >::allocate ( void *const  addr,
const USz_t  size 
)
inline

◆ deallocate()

template<typename T >
void ArSp::DefaultArrayAlloc< T >::deallocate ( T *  p,
const USz_t  size 
)
inline

References IntVect::p().

Member Data Documentation

◆ m_allocBy

template<typename T >
AllocBy ArSp::DefaultArrayAlloc< T >::m_allocBy
private

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