|
| Allocator (std::unique_ptr< Allocator > in_nestedAllocator={}) |
|
virtual void * | allocate (std::size_t size, AllocatorAffinity allocatorAffinity=ALLOCATOR_AFFINITY_OBJECTS) |
| allocate from the pool of memory blocks, or allocate from a new memory block
|
|
virtual bool | deallocate (void *ptr, std::size_t size) |
| deallocate, returning data to pool.
|
|
virtual size_t | deleteEmptyMemoryBlocks () |
| delete any MemoryBlock that are empty
|
|
virtual size_t | totalAvailableSize () const |
| return the total available size of allocated MemoryBlocks
|
|
virtual size_t | totalReservedSize () const |
| return the total reserved size of allocated MemoryBlocks
|
|
virtual size_t | totalMemorySize () const |
| return the total memory size of allocated MemoryBlocks
|
|
virtual void | report (std::ostream &out) const |
| report stats about blocks of memory allocated.
|
|
void | setMemoryTracking (int mt) |
| set the MemoryTracking member of the vsg::Allocator and all the MemoryBlocks that it manages.
|
|
MemoryBlocks * | getMemoryBlocks (AllocatorAffinity allocatorAffinity) |
|
MemoryBlocks * | getOrCreateMemoryBlocks (AllocatorAffinity allocatorAffinity, const std::string &name, size_t blockSize) |
|
void | setBlockSize (AllocatorAffinity allocatorAffinity, size_t blockSize) |
|
extensible Allocator that handles allocation and deallocation of scene graph CPU memory,