Compute Library
 19.08
IMemoryManager Class Referenceabstract

Memory manager interface to handle allocations of backing memory. More...

#include <IMemoryManager.h>

Public Member Functions

virtual ~IMemoryManager ()=default
 Default virtual destructor. More...
 
virtual ILifetimeManagerlifetime_manager ()=0
 Returns the lifetime manager used by the memory manager. More...
 
virtual IPoolManagerpool_manager ()=0
 Returns the pool manager used by the memory manager. More...
 
virtual void populate (IAllocator &allocator, size_t num_pools)=0
 Populates the pool manager with the given number of pools. More...
 
virtual void clear ()=0
 Clears the pool manager. More...
 

Detailed Description

Memory manager interface to handle allocations of backing memory.

Definition at line 39 of file IMemoryManager.h.

Constructor & Destructor Documentation

◆ ~IMemoryManager()

virtual ~IMemoryManager ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ clear()

virtual void clear ( )
pure virtual

Clears the pool manager.

Precondition
All pools must be unoccupied

Implemented in MemoryManagerOnDemand.

◆ lifetime_manager()

virtual ILifetimeManager* lifetime_manager ( )
pure virtual

Returns the lifetime manager used by the memory manager.

Returns
The lifetime manager

Implemented in MemoryManagerOnDemand.

◆ pool_manager()

virtual IPoolManager* pool_manager ( )
pure virtual

Returns the pool manager used by the memory manager.

Returns
The pool manager

Implemented in MemoryManagerOnDemand.

◆ populate()

virtual void populate ( IAllocator allocator,
size_t  num_pools 
)
pure virtual

Populates the pool manager with the given number of pools.

Precondition
Pool manager must be empty
Parameters
[in]allocatorAllocator to use for the backing allocations
[in]num_poolsNumber of pools to create

Implemented in MemoryManagerOnDemand.


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