Skip to content

iox::posix::SharedMemory🔗

Inherits from DesignPattern::Creation< SharedMemory, SharedMemoryError >

Public Types🔗

Name
using cxx::string< NAME_SIZE > Name_t

Public Functions🔗

Name
SharedMemory(const SharedMemory & )
SharedMemory & operator=(const SharedMemory & )
SharedMemory(SharedMemory && )
SharedMemory & operator=(SharedMemory && )
~SharedMemory()
int32_t getHandle() const

Public Attributes🔗

Name
constexpr uint64_t NAME_SIZE

Friends🔗

Name
class DesignPattern::Creation< SharedMemory, SharedMemoryError >

Additional inherited members🔗

Public Types inherited from DesignPattern::Creation< SharedMemory, SharedMemoryError >

Name
using Creation< DerivedClass, ErrorType > CreationPattern_t
using iox::cxx::expected< DerivedClass, ErrorType > result_t
using ErrorType errorType_t

Public Functions inherited from DesignPattern::Creation< SharedMemory, SharedMemoryError >

Name
template \<typename... Targs>
result_t
create(Targs &&... args)
factory method which guarantees that either a working object is produced or an error value describing the error during construction
result_t verify(DerivedClass && newObject)
verifies if a class was created successfully
template \<typename... Targs>
iox::cxx::expected< ErrorType >
placementCreate(void *const memory, Targs &&... args)
factory method which guarantees that either a working object is produced or an error value describing the error during construction
Creation() =default
Creation(Creation && rhs)
Creation(const Creation & rhs) =default
bool isInitialized() const
returns true if the object was constructed successfully, otherwise false

Protected Attributes inherited from DesignPattern::Creation< SharedMemory, SharedMemoryError >

Name
bool m_isInitialized
ErrorType m_errorValue

Public Types Documentation🔗

using Name_t🔗

using iox::posix::SharedMemory::Name_t =  cxx::string<NAME_SIZE>;

Public Functions Documentation🔗

function SharedMemory🔗

SharedMemory(
    const SharedMemory & 
)

function operator=🔗

SharedMemory & operator=(
    const SharedMemory & 
)

function SharedMemory🔗

SharedMemory(
    SharedMemory && 
)

function operator=🔗

SharedMemory & operator=(
    SharedMemory && 
)

function ~SharedMemory🔗

~SharedMemory()

function getHandle🔗

int32_t getHandle() const

Public Attributes Documentation🔗

variable NAME_SIZE🔗

static constexpr uint64_t NAME_SIZE = 128U;

Friends🔗

friend DesignPattern::Creation< SharedMemory, SharedMemoryError >🔗

friend class DesignPattern::Creation< SharedMemory, SharedMemoryError >;

Updated on 26 April 2021 at 15:31:01 CEST