#include
<kcontainerallocators.h>
..) must implement these.
Definition at line 51 of file kcontainerallocators.h.
| Public Member Functions | |
| KBaseAllocator (size_t const pRecordSize) | |
| The class constructor. | |
| void | Reserve (size_t const pRecordCount) | 
| This tells the allocator that we are about
to call AllocateRecords one or many times to allocate pRecordCount
records. | |
| void * | AllocateRecords (size_t const pRecordCount=1) | 
| Returns a pointer to a uninitialized
continuous block of memory able to hold pRecordCount * pRecordSize
bytes. | |
| void | FreeMemory (void *pRecord) | 
| Frees a block of memory returned by
AllocateRecords. | |
| size_t | GetRecordSize () const | 
| KBaseAllocator | ( | size_t const | pRecordSize | ) | [inline] | 
The class constructor.
| pRecordSize | the size of one record held by the container. | 
Definition at line 60 of file kcontainerallocators.h.
| void Reserve | ( | size_t const | pRecordCount | ) | [inline] | 
This tells the allocator that we are about to call AllocateRecords one or many times to allocate pRecordCount records.
| pRecordCount | 
Definition at line 72 of file kcontainerallocators.h.
Referenced by KRedBlackTree< KKeyValuePair, KFbxMapKStringCompare, KBaseAllocator >::Reserve().
| void* AllocateRecords | ( | size_t const | pRecordCount = 1 | ) | [inline] | 
Returns a pointer to a uninitialized continuous block of memory able to hold pRecordCount * pRecordSize bytes.
| pRecordCount | 
Definition at line 82 of file kcontainerallocators.h.
References FbxSdkMalloc().
Referenced by KRedBlackTree< KKeyValuePair, KFbxMapKStringCompare, KBaseAllocator >::DuplicateSubTree(), KRedBlackTree< KKeyValuePair, KFbxMapKStringCompare, KBaseAllocator >::Insert(), and KRedBlackTree< KKeyValuePair, KFbxMapKStringCompare, KBaseAllocator >::operator=().
| void FreeMemory | ( | void * | pRecord | ) | [inline] | 
Frees a block of memory returned by AllocateRecords.
| pRecord | 
Definition at line 90 of file kcontainerallocators.h.
References FbxSdkFree().
Referenced by KRedBlackTree< KKeyValuePair, KFbxMapKStringCompare, KBaseAllocator >::Clear(), KRedBlackTree< KKeyValuePair, KFbxMapKStringCompare, KBaseAllocator >::ClearSubTree(), and KRedBlackTree< KKeyValuePair, KFbxMapKStringCompare, KBaseAllocator >::Remove().
| size_t GetRecordSize | ( | ) | const [inline] | 
Definition at line 97 of file kcontainerallocators.h.