Interface for managing the lifetime of objects.
More...
#include <ILifetimeManager.h>
Interface for managing the lifetime of objects.
Definition at line 41 of file ILifetimeManager.h.
◆ ~ILifetimeManager()
◆ are_all_finalized()
virtual bool are_all_finalized |
( |
| ) |
const |
|
pure virtual |
Checks if the lifetime of the registered object is complete.
- Returns
- True if all object lifetimes are finalized else false.
Implemented in ISimpleLifetimeManager.
◆ create_pool()
◆ end_lifetime()
virtual void end_lifetime |
( |
void * |
obj, |
|
|
IMemory & |
obj_memory, |
|
|
size_t |
size, |
|
|
size_t |
alignment |
|
) |
| |
|
pure virtual |
Ends lifetime of an object.
- Parameters
-
[in] | obj | Object |
[in] | obj_memory | Object memory |
[in] | size | Size of the given object at given time |
[in] | alignment | Alignment requirements for the object |
Implemented in ISimpleLifetimeManager.
◆ mapping_type()
◆ register_group()
Registers a group to the lifetime manager and assigns a group id.
- Parameters
-
[in] | group | The group id of the group |
Implemented in ISimpleLifetimeManager.
◆ release_group()
Unbound and release elements associated with a group.
- Parameters
-
[in] | group | Group to unbound its elements |
- Returns
- True if group was registered and released else false.
Implemented in ISimpleLifetimeManager.
◆ start_lifetime()
virtual void start_lifetime |
( |
void * |
obj | ) |
|
|
pure virtual |
Registers and starts lifetime of an object.
- Parameters
-
[in] | obj | Object to register |
Implemented in ISimpleLifetimeManager.
The documentation for this class was generated from the following file: