#include <fbxcontainerallocators.h>
An allocator class for use as a template parameter to one of the container class (FbxMap, FbxSet, FbxDynamicArray...) must implement these. 
Definition at line 23 of file fbxcontainerallocators.h.
|  | 
|  | FbxBaseAllocator (const size_t pRecordSize) | 
|  | The class constructor.  More... 
 | 
|  | 
| void | Reserve (const size_t) | 
|  | This tells the allocator that we are about to call AllocateRecords one or many times to allocate pRecordCount records.  More... 
 | 
|  | 
| void * | AllocateRecords (const size_t pRecordCount=1) | 
|  | Returns a pointer to a uninitialized continuous block of memory able to hold pRecordCount * pRecordSize bytes.  More... 
 | 
|  | 
| void | FreeMemory (void *pRecord) | 
|  | Frees a block of memory returned by AllocateRecords.  More... 
 | 
|  | 
| size_t | GetRecordSize () const | 
|  | 
◆ FbxBaseAllocator()
The class constructor. 
- Parameters
- 
  
    | pRecordSize | the size of one record held by the container. |  
 
Definition at line 32 of file fbxcontainerallocators.h.
   33         mRecordSize(pRecordSize)
  
 
◆ Reserve()
  
  | 
        
          | void Reserve | ( | const size_t |  | ) |  |  | inline | 
 
This tells the allocator that we are about to call AllocateRecords one or many times to allocate pRecordCount records. 
- Parameters
- 
  
  
Definition at line 44 of file fbxcontainerallocators.h.
 
 
◆ AllocateRecords()
  
  | 
        
          | void* AllocateRecords | ( | const size_t | pRecordCount = 1 | ) |  |  | inline | 
 
Returns a pointer to a uninitialized continuous block of memory able to hold pRecordCount * pRecordSize bytes. 
- Parameters
- 
  
  
Definition at line 54 of file fbxcontainerallocators.h.
   56         return FbxMalloc(pRecordCount * mRecordSize);
  
 
◆ FreeMemory()
  
  | 
        
          | void FreeMemory | ( | void * | pRecord | ) |  |  | inline | 
 
 
◆ GetRecordSize()
  
  | 
        
          | size_t GetRecordSize | ( |  | ) | const |  | inline | 
 
 
The documentation for this class was generated from the following file: