74 #ifndef _SmallObjectAllocator_H__ 75 #define _SmallObjectAllocator_H__ 103 void free(
void* chunk);
106 static void setNext(
void* chunk,
void* next);
107 static void* getNext(
void* chunk);
#define _UtilExport
Definition: UtilPrereqs.h:60
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the util library ...
void * first_
A pointer to the first free memory chunk.
Definition: SmallObjectAllocator.h:109
size_t numChunksPerBlock_
The number of chunks per memory block.
Definition: SmallObjectAllocator.h:111
The memory chunk is at the same time an element of a single linked list.
Definition: SmallObjectAllocator.h:93
This class is used to allocate and free small objects (usually not polymorphic).
Definition: SmallObjectAllocator.h:90
Chunk * next_
A pointer to the next chunk in the list.
Definition: SmallObjectAllocator.h:95
size_t chunkSize_
The size of each chunk (and usually also the size of the created objects)
Definition: SmallObjectAllocator.h:110
std::vector< char * > blocks_
A list of all allocated memory blocks (used to destroy them again)
Definition: SmallObjectAllocator.h:113