Classes | |
| struct | BatchInfo |
Public Types | |
| typedef AllocatedType | Type |
Public Member Functions | |
| BatchAllocator (unsigned int objectsPerPage=255) | |
| AllocatedType * | allocate () |
| void | release (AllocatedType *object) |
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 63 of file json_batchallocator.h.
|
inline |
allocate space for an array of objectPerAllocation object.
Definition at line 91 of file json_batchallocator.h.
References Json::BatchAllocator< AllocatedType, objectPerAllocation >::freeHead_.
|
inline |
Release the object.
Definition at line 119 of file json_batchallocator.h.
References Json::BatchAllocator< AllocatedType, objectPerAllocation >::freeHead_.