BaseArrayAllocator< SIZE > Class Template Reference

#include <arrayallocator.h>

Inheritance diagram for BaseArrayAllocator< SIZE >:

Detailed Description

template<Int SIZE>
class maxon::BaseArrayAllocator< SIZE >

BaseArray allocator which only allocates and frees entries of SIZE bytes.

Note
Allocation of a new element might reallocate the buffer and move all existing items to a different address. The caller must only address items by index!
Template Parameters
SIZEThe size of an entry in bytes.

Public Types

using ValueType = ArrayAllocatorValueType< SIZE >
 

Additional Inherited Members

- Public Member Functions inherited from ArrayAllocator< SIZE, BaseArray< ArrayAllocatorValueType< SIZE > > >
 ArrayAllocator ()
 
 ArrayAllocator (ArrayAllocator &&src)
 
Int ComputeArraySize (Int currentSize, Int increment, Int minChunkSize)
 
void * Alloc (Int64 s, MAXON_SOURCE_LOCATION_DECLARATION)
 
void * Realloc (void *, Int64, MAXON_SOURCE_LOCATION_DECLARATION)
 
void Free (T *&p)
 
Bool IsCompatibleWithDefaultAllocator (void *p) const
 
BaseArray< ArrayAllocatorValueType< SIZE > > & GetArray ()
 
const BaseArray< ArrayAllocatorValueType< SIZE > > & GetArray () const
 

Member Typedef Documentation

◆ ValueType