#include <arrayallocator.h>
BufferedBaseArray allocator which only allocates and frees entries of SIZE bytes.
SIZE | The size of an entry in bytes. |
CNT | The number of preallocated entries. |
Additional Inherited Members | |
Public Types inherited from ArrayAllocator< SIZE, BufferedBaseArraySelector< CNT > > | |
using | ValueType = ArrayAllocatorValueType< SIZE > |
using | ArrayType = typename ARRAYSELECTOR::template Type< ValueType > |
using | IsArrayAllocator = std::true_type |
Public Member Functions inherited from ArrayAllocator< SIZE, BufferedBaseArraySelector< CNT > > | |
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 |
ArrayType & | GetArray () |
const ArrayType & | GetArray () const |
Bool | DeleteAll () |