#include <Allocator.h>
|
| Allocator (size_t in_defaultAlignment=8) |
|
| Allocator (std::unique_ptr< Allocator > in_nestedAllocator, size_t in_defaultAlignment=8) |
|
virtual void * | allocate (std::size_t size, AllocatorAffinity allocatorAffinity=ALLOCATOR_AFFINITY_OBJECTS)=0 |
| allocate from the pool of memory blocks, or allocate from a new memory block
|
|
virtual bool | deallocate (void *ptr, std::size_t size)=0 |
| deallocate, returning data to pool.
|
|
virtual size_t | deleteEmptyMemoryBlocks ()=0 |
| delete any MemoryBlock that are empty
|
|
virtual size_t | totalAvailableSize () const =0 |
| return the total available size of allocated MemoryBlocks
|
|
virtual size_t | totalReservedSize () const =0 |
| return the total reserved size of allocated MemoryBlocks
|
|
virtual size_t | totalMemorySize () const =0 |
| return the total memory size of allocated MemoryBlocks
|
|
virtual void | setBlockSize (AllocatorAffinity allocatorAffinity, size_t blockSize)=0 |
|
virtual void | report (std::ostream &out) const =0 |
| report stats about blocks of memory allocated.
|
|
|
AllocatorType | allocatorType = ALLOCATOR_TYPE_VSG_ALLOCATOR |
|
std::mutex | mutex |
|
size_t | defaultAlignment = 8 |
|
extensible Allocator that handles allocation and deallocation of scene graph CPU memory,
◆ allocate()
virtual void * vsg::Allocator::allocate |
( |
std::size_t | size, |
|
|
AllocatorAffinity | allocatorAffinity = ALLOCATOR_AFFINITY_OBJECTS ) |
|
pure virtual |
allocate from the pool of memory blocks, or allocate from a new memory block
Implemented in vsg::IntrusiveAllocator.
◆ deallocate()
virtual bool vsg::Allocator::deallocate |
( |
void * | ptr, |
|
|
std::size_t | size ) |
|
pure virtual |
◆ deleteEmptyMemoryBlocks()
virtual size_t vsg::Allocator::deleteEmptyMemoryBlocks |
( |
| ) |
|
|
pure virtual |
◆ report()
virtual void vsg::Allocator::report |
( |
std::ostream & | out | ) |
const |
|
pure virtual |
◆ totalAvailableSize()
virtual size_t vsg::Allocator::totalAvailableSize |
( |
| ) |
const |
|
pure virtual |
◆ totalMemorySize()
virtual size_t vsg::Allocator::totalMemorySize |
( |
| ) |
const |
|
pure virtual |
◆ totalReservedSize()
virtual size_t vsg::Allocator::totalReservedSize |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: