#include <json_batchallocator.h>
Classes | |
struct | BatchInfo |
Public Types | |
typedef AllocatedType | Type |
Public Member Functions | |
AllocatedType * | allocate () |
BatchAllocator (unsigned int objectsPerPage=255) | |
void | release (AllocatedType *object) |
~BatchAllocator () | |
Private Member Functions | |
BatchAllocator (const BatchAllocator &) | |
void | operator= (const BatchAllocator &) |
Static Private Member Functions | |
static BatchInfo * | allocateBatch (unsigned int objectsPerPage) |
Private Attributes | |
BatchInfo * | batches_ |
BatchInfo * | currentBatch_ |
AllocatedType * | freeHead_ |
Head of a single linked list within the allocated space of freeed object. | |
unsigned int | objectsPerPage_ |
Definition at line 25 of file json_batchallocator.h.
typedef AllocatedType Json::BatchAllocator< AllocatedType, objectPerAllocation >::Type |
Definition at line 28 of file json_batchallocator.h.
Json::BatchAllocator< AllocatedType, objectPerAllocation >::BatchAllocator | ( | unsigned int | objectsPerPage = 255 | ) | [inline] |
Definition at line 30 of file json_batchallocator.h.
Json::BatchAllocator< AllocatedType, objectPerAllocation >::~BatchAllocator | ( | ) | [inline] |
Definition at line 41 of file json_batchallocator.h.
Json::BatchAllocator< AllocatedType, objectPerAllocation >::BatchAllocator | ( | const BatchAllocator< AllocatedType, objectPerAllocation > & | ) | [private] |
AllocatedType* Json::BatchAllocator< AllocatedType, objectPerAllocation >::allocate | ( | ) | [inline] |
allocate space for an array of objectPerAllocation object.
Definition at line 53 of file json_batchallocator.h.
static BatchInfo* Json::BatchAllocator< AllocatedType, objectPerAllocation >::allocateBatch | ( | unsigned int | objectsPerPage | ) | [inline, static, private] |
Definition at line 101 of file json_batchallocator.h.
void Json::BatchAllocator< AllocatedType, objectPerAllocation >::operator= | ( | const BatchAllocator< AllocatedType, objectPerAllocation > & | ) | [private] |
void Json::BatchAllocator< AllocatedType, objectPerAllocation >::release | ( | AllocatedType * | object | ) | [inline] |
Release the object.
Definition at line 81 of file json_batchallocator.h.
BatchInfo* Json::BatchAllocator< AllocatedType, objectPerAllocation >::batches_ [private] |
Definition at line 112 of file json_batchallocator.h.
BatchInfo* Json::BatchAllocator< AllocatedType, objectPerAllocation >::currentBatch_ [private] |
Definition at line 113 of file json_batchallocator.h.
AllocatedType* Json::BatchAllocator< AllocatedType, objectPerAllocation >::freeHead_ [private] |
Head of a single linked list within the allocated space of freeed object.
Definition at line 115 of file json_batchallocator.h.
unsigned int Json::BatchAllocator< AllocatedType, objectPerAllocation >::objectsPerPage_ [private] |
Definition at line 116 of file json_batchallocator.h.