#include <pool.h>
Public Member Functions | |
SimplePool (size_t, size_t) | |
~SimplePool () | |
size_t | maxAlloc () const |
void * | allocate (size_t) |
void | deallocate (void *, size_t) |
Static Public Member Functions | |
static void | allowReport () |
static size_t | numInstances () |
static void | memoryReport () |
Private Member Functions | |
void * | newBlock () |
void | reportDestruction () |
Private Attributes | |
const size_t | d_systemRequest |
const size_t | d_atomSize |
const size_t | d_instance |
char * | d_free |
char * | d_top |
size_t | d_used |
size_t | d_allocated |
std::vector< void * > | d_systemAllocs |
Static Private Attributes | |
static size_t | instances = 0 |
static size_t | constructions = 0 |
static const char * | logfile = "simplepool.log" |
static bool | done = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|