vsg  1.1.0
VulkanSceneGraph library
Public Member Functions | Public Attributes | List of all members
vsg::Allocator::MemoryBlocks Struct Reference
Collaboration diagram for vsg::Allocator::MemoryBlocks:
Collaboration graph
[legend]

Public Member Functions

 MemoryBlocks (Allocator *in_parent, const std::string &in_name, size_t in_blockSize)
 
void * allocate (std::size_t size)
 
bool deallocate (void *ptr, std::size_t size)
 
size_t deleteEmptyMemoryBlocks ()
 
size_t totalAvailableSize () const
 
size_t totalReservedSize () const
 
size_t totalMemorySize () const
 

Public Attributes

Allocatorparent = nullptr
 
std::string name
 
size_t blockSize = 0
 
std::map< void *, std::shared_ptr< MemoryBlock > > memoryBlocks
 
std::shared_ptr< MemoryBlocklatestMemoryBlock
 

The documentation for this struct was generated from the following file: