iceoryx_doc
1.0.1
|
The GenericMemoryBlock is an implementation of a MemoryBlock for a common use case. More...
#include <generic_memory_block.hpp>
Public Member Functions | |
GenericMemoryBlock (const GenericMemoryBlock &)=delete | |
GenericMemoryBlock (GenericMemoryBlock &&)=delete | |
GenericMemoryBlock & | operator= (const GenericMemoryBlock &)=delete |
GenericMemoryBlock & | operator= (GenericMemoryBlock &&)=delete |
uint64_t | size () const noexcept override |
Implementation of MemoryBlock::size. More... | |
uint64_t | alignment () const noexcept override |
Implementation of MemoryBlock::alignment. More... | |
void | destroy () noexcept override |
Implementation of MemoryBlock::destroy. | |
template<typename... Targs> | |
cxx::optional< T * > | emplace (Targs &&... args) noexcept |
A new element is constructed by forwarding the arguments to the constructor of T. If the MemoryBlock has a value then the destructor of T is called. More... | |
cxx::optional< T * > | value () const noexcept |
This function enables the access to the underlying type. More... | |
![]() | |
MemoryBlock (const MemoryBlock &)=delete | |
MemoryBlock (MemoryBlock &&)=delete | |
MemoryBlock & | operator= (const MemoryBlock &)=delete |
MemoryBlock & | operator= (MemoryBlock &&)=delete |
virtual void | memoryAvailable (void *memory) noexcept |
This function is called once the memory is available and is therefore the earliest possibility to use the memory. More... | |
cxx::optional< void * > | memory () const noexcept |
This function provides the pointer to the requested memory. More... | |
Friends | |
class | MemoryProvider |
The GenericMemoryBlock is an implementation of a MemoryBlock for a common use case.
|
overridevirtualnoexcept |
Implementation of MemoryBlock::alignment.
Implements iox::roudi::MemoryBlock.
|
noexcept |
A new element is constructed by forwarding the arguments to the constructor of T. If the MemoryBlock has a value then the destructor of T is called.
[in] | args | are perfectly forwarded to the constructor of T to perform a placement new |
|
overridevirtualnoexcept |
|
noexcept |
This function enables the access to the underlying type.