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 1113 of file jsoncpp.cpp.
typedef AllocatedType Json::BatchAllocator< AllocatedType, objectPerAllocation >::Type |
Definition at line 1116 of file jsoncpp.cpp.
Json::BatchAllocator< AllocatedType, objectPerAllocation >::BatchAllocator | ( | unsigned int | objectsPerPage = 255 | ) | [inline] |
Definition at line 1118 of file jsoncpp.cpp.
Json::BatchAllocator< AllocatedType, objectPerAllocation >::~BatchAllocator | ( | ) | [inline] |
Definition at line 1129 of file jsoncpp.cpp.
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 1141 of file jsoncpp.cpp.
static BatchInfo* Json::BatchAllocator< AllocatedType, objectPerAllocation >::allocateBatch | ( | unsigned int | objectsPerPage | ) | [inline, static, private] |
Definition at line 1189 of file jsoncpp.cpp.
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 1169 of file jsoncpp.cpp.
BatchInfo* Json::BatchAllocator< AllocatedType, objectPerAllocation >::batches_ [private] |
Definition at line 1200 of file jsoncpp.cpp.
BatchInfo* Json::BatchAllocator< AllocatedType, objectPerAllocation >::currentBatch_ [private] |
Definition at line 1201 of file jsoncpp.cpp.
AllocatedType* Json::BatchAllocator< AllocatedType, objectPerAllocation >::freeHead_ [private] |
Head of a single linked list within the allocated space of freeed object.
Definition at line 1203 of file jsoncpp.cpp.
unsigned int Json::BatchAllocator< AllocatedType, objectPerAllocation >::objectsPerPage_ [private] |
Definition at line 1204 of file jsoncpp.cpp.