Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
allocator design parameters: More...
#include <pool.h>
Public Member Functions | |
Pool (size_t maxObjects) | |
size_t | RemainingObjects () |
T * | Allocate () |
void | Deallocate (T *p) |
void | DeallocateAll () |
bool | Contains (uintptr_t address) const |
Static Public Attributes | |
static const size_t | objectSize = ROUND_UP(sizeof(T), sizeof(intptr_t)) |
Private Member Functions | |
NONCOPYABLE (Pool) | |
Private Attributes | |
Storage | storage |
size_t | end |
void * | freelist |
allocator design parameters:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
static |
|
private |