Compute Library
18.05
|
Abstract class of the simple lifetime manager interface. More...
#include <ISimpleLifetimeManager.h>
Public Member Functions | |
ISimpleLifetimeManager () | |
Constructor. More... | |
ISimpleLifetimeManager (const ISimpleLifetimeManager &)=delete | |
Prevent instances of this class to be copy constructed. More... | |
ISimpleLifetimeManager & | operator= (const ISimpleLifetimeManager &)=delete |
Prevent instances of this class to be copied. More... | |
ISimpleLifetimeManager (ISimpleLifetimeManager &&)=default | |
Allow instances of this class to be move constructed. More... | |
ISimpleLifetimeManager & | operator= (ISimpleLifetimeManager &&)=default |
Allow instances of this class to be moved. More... | |
void | register_group (IMemoryGroup *group) override |
Registers a group to the lifetime manager and assigns a group id. More... | |
void | start_lifetime (void *obj) override |
Registers and starts lifetime of an object. More... | |
void | end_lifetime (void *obj, void **handle, size_t size) override |
Ends lifetime of an object. More... | |
bool | are_all_finalized () const override |
Checks if the lifetime of the registered object is complete. More... | |
Public Member Functions inherited from ILifetimeManager | |
virtual | ~ILifetimeManager ()=default |
Virtual Destructor. More... | |
virtual std::unique_ptr< IMemoryPool > | create_pool (IAllocator *allocator)=0 |
Creates a memory pool depending on the memory requirements. More... | |
virtual MappingType | mapping_type () const =0 |
Returns the type of mappings that the lifetime manager returns. More... | |
Abstract class of the simple lifetime manager interface.
Definition at line 44 of file ISimpleLifetimeManager.h.
Constructor.
|
delete |
Prevent instances of this class to be copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
overridevirtual |
Checks if the lifetime of the registered object is complete.
Implements ILifetimeManager.
|
overridevirtual |
Ends lifetime of an object.
[in] | obj | Object |
[in] | handle | Memory handle of the object |
[in] | size | Size of the given object at given time |
Implements ILifetimeManager.
|
delete |
Prevent instances of this class to be copied.
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Registers a group to the lifetime manager and assigns a group id.
[in] | group | The group id of the group |
Implements ILifetimeManager.
|
overridevirtual |
Registers and starts lifetime of an object.
[in] | obj | Object to register |
Implements ILifetimeManager.