BlockArray< T, BLOCK_SIZE_EXPONENT, MEMFLAGS, ALLOCATOR >::ForwardAllocator Struct Reference

Public Member Functions

 ForwardAllocator (ALLOCATOR *a)
 
 ForwardAllocator (const ForwardAllocator &src)
 
void operator= (const ForwardAllocator &)
 
Int ComputeArraySize (Int currentSize, Int increment, Int minChunkSize)
 
void * Alloc (Int s, MAXON_SOURCE_LOCATION_DECLARATION)
 
void * Realloc (void *p, Int n, MAXON_SOURCE_LOCATION_DECLARATION)
 
template<typename X >
void Free (X *&p)
 

Private Attributes

ALLOCATOR * _a
 

Constructor & Destructor Documentation

◆ ForwardAllocator() [1/2]

ForwardAllocator ( ALLOCATOR *  a)
explicit

◆ ForwardAllocator() [2/2]

Member Function Documentation

◆ operator=()

void operator= ( const ForwardAllocator )

◆ ComputeArraySize()

Int ComputeArraySize ( Int  currentSize,
Int  increment,
Int  minChunkSize 
)

◆ Alloc()

void* Alloc ( Int  s,
MAXON_SOURCE_LOCATION_DECLARATION   
)

◆ Realloc()

void* Realloc ( void *  p,
Int  n,
MAXON_SOURCE_LOCATION_DECLARATION   
)

◆ Free()

void Free ( X *&  p)

Member Data Documentation

◆ _a

ALLOCATOR* _a
private