#include <dynamic_memory.hpp>
Public Member Functions | |
virtual void * | allocate (std::size_t size)=0 |
virtual void | deallocate (const void *ptr)=0 |
virtual uint16_t | getBlockCapacity () const =0 |
virtual | ~IPoolAllocator () |
This interface is used by other library components that need dynamic memory.
Definition at line 21 of file dynamic_memory.hpp.
|
inlinevirtual |
Definition at line 24 of file dynamic_memory.hpp.
|
pure virtual |
Implemented in NullAllocator, uavcan::LimitedPoolAllocator, uavcan::HeapBasedPoolAllocator< BlockSize, RaiiSynchronizer >, uavcan::HeapBasedPoolAllocator< uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< PoolSize, BlockSize, RaiiSynchronizer >, uavcan::PoolAllocator< SharedMemoryPoolSize, uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< 0, MemPoolBlockSize >, uavcan::PoolAllocator< uavcan::MemPoolBlockSize *100, uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< MemPoolSize, MemPoolBlockSize >, uavcan::PoolAllocator< PoolSize, BlockSize, RaiiSynchronizer >, uavcan::PoolAllocator< SharedMemoryPoolSize, uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< 0, MemPoolBlockSize >, uavcan::PoolAllocator< uavcan::MemPoolBlockSize *100, uavcan::MemPoolBlockSize >, and uavcan::PoolAllocator< MemPoolSize, MemPoolBlockSize >.
|
pure virtual |
Implemented in uavcan::HeapBasedPoolAllocator< BlockSize, RaiiSynchronizer >, uavcan::HeapBasedPoolAllocator< uavcan::MemPoolBlockSize >, uavcan::LimitedPoolAllocator, uavcan::PoolAllocator< PoolSize, BlockSize, RaiiSynchronizer >, uavcan::PoolAllocator< SharedMemoryPoolSize, uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< 0, MemPoolBlockSize >, uavcan::PoolAllocator< uavcan::MemPoolBlockSize *100, uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< MemPoolSize, MemPoolBlockSize >, uavcan::PoolAllocator< PoolSize, BlockSize, RaiiSynchronizer >, uavcan::PoolAllocator< SharedMemoryPoolSize, uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< 0, MemPoolBlockSize >, uavcan::PoolAllocator< uavcan::MemPoolBlockSize *100, uavcan::MemPoolBlockSize >, uavcan::PoolAllocator< MemPoolSize, MemPoolBlockSize >, and NullAllocator.
|
pure virtual |
Returns the maximum number of blocks this allocator can allocate.
Implemented in NullAllocator, uavcan::HeapBasedPoolAllocator< BlockSize, RaiiSynchronizer >, uavcan::LimitedPoolAllocator, and uavcan::PoolAllocator< PoolSize, BlockSize, RaiiSynchronizer >.