Chombo + EB + MF  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

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

References CH_assert, and IntVect::p().

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

References IntVect::p().

Member Data Documentation

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

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