16 #ifndef IOX_POSH_ROUDI_MEMORY_MEMORY_BLOCK_HPP
17 #define IOX_POSH_ROUDI_MEMORY_MEMORY_BLOCK_HPP
19 #include "iceoryx_utils/cxx/optional.hpp"
48 virtual uint64_t
size() const noexcept = 0;
67 cxx::optional<
void*>
memory() const noexcept;
70 void* m_memory{
nullptr};
The MemoryBlock is a container for general purpose memory. It is used to request some memory from a M...
Definition: memory_block.hpp:32
virtual void memoryAvailable(void *memory) noexcept
This function is called once the memory is available and is therefore the earliest possibility to use...
virtual uint64_t size() const noexcept=0
This function provides the size of the required memory for the underlying data. It is needed for the ...
cxx::optional< void * > memory() const noexcept
This function provides the pointer to the requested memory.
virtual void destroy() noexcept=0
The MemoryProvider calls this either when MemoryProvider::destroy is called or in its destructor.
MemoryBlock(const MemoryBlock &)=delete
virtual uint64_t alignment() const noexcept=0
This function provides the alignment of the memory for the underlying data. This information is neede...
This class creates memory which is requested by the MemoryBlocks. Once the memory is available,...
Definition: memory_provider.hpp:72
Definition: service_description.hpp:29