ArSp::DefaultArrayAlloc< T > Class Template Reference

#include <CHArray.H>

List of all members.


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:

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

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]


Member Data Documentation

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


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

Generated on Fri Apr 5 04:25:56 2019 for Chombo + EB by  doxygen 1.5.5