24.02.1
|
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... | |
bool | release_group (IMemoryGroup *group) override |
Unbound and release elements associated with a group. More... | |
void | start_lifetime (void *obj) override |
Registers and starts lifetime of an object. More... | |
void | end_lifetime (void *obj, IMemory &obj_memory, size_t size, size_t alignment) 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 43 of file ISimpleLifetimeManager.h.
Constructor.
Definition at line 39 of file ISimpleLifetimeManager.cpp.
|
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.
Definition at line 133 of file ISimpleLifetimeManager.cpp.
References arm_compute::mlgo::parser::end().
Referenced by ISimpleLifetimeManager::end_lifetime().
|
overridevirtual |
Ends lifetime of an object.
[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 |
Implements ILifetimeManager.
Definition at line 88 of file ISimpleLifetimeManager.cpp.
References ISimpleLifetimeManager::are_all_finalized(), ARM_COMPUTE_ERROR_ON, arm_compute::test::validation::b, and arm_compute::mlgo::parser::end().
|
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.
Definition at line 44 of file ISimpleLifetimeManager.cpp.
References ARM_COMPUTE_ERROR_ON.
|
overridevirtual |
Unbound and release elements associated with a group.
[in] | group | Group to unbound its elements |
Implements ILifetimeManager.
Definition at line 53 of file ISimpleLifetimeManager.cpp.
References IMemoryGroup::mappings().
|
overridevirtual |
Registers and starts lifetime of an object.
[in] | obj | Object to register |
Implements ILifetimeManager.
Definition at line 67 of file ISimpleLifetimeManager.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MSG, and arm_compute::mlgo::parser::end().