23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_ILIFETIMEMANAGER_H
25 #define ARM_COMPUTE_ILIFETIMEMANAGER_H
70 virtual void end_lifetime(
void *obj,
IMemory &obj_memory,
size_t size,
size_t alignment) = 0;
virtual bool release_group(IMemoryGroup *group)=0
Unbound and release elements associated with a group.
virtual bool are_all_finalized() const =0
Checks if the lifetime of the registered object is complete.
Interface for managing the lifetime of objects.
virtual MappingType mapping_type() const =0
Returns the type of mappings that the lifetime manager returns.
virtual std::unique_ptr< IMemoryPool > create_pool(IAllocator *allocator)=0
Creates a memory pool depending on the memory requirements.
virtual void register_group(IMemoryGroup *group)=0
Registers a group to the lifetime manager and assigns a group id.
virtual void start_lifetime(void *obj)=0
Registers and starts lifetime of an object.
virtual void end_lifetime(void *obj, IMemory &obj_memory, size_t size, size_t alignment)=0
Ends lifetime of an object.
Copyright (c) 2017-2023 Arm Limited.
virtual ~ILifetimeManager()=default
Virtual Destructor.
input allocator() -> allocate()