Skip to content

iox::mepoo::SharedChunk🔗

WARNING: SharedChunk is not thread safe! Don't share SharedChunk objects between threads! Use for each thread a separate copy.

#include <shared_chunk.hpp>

Public Functions🔗

Name
SharedChunk() =default
SharedChunk(ChunkManagement *const resource)
~SharedChunk()
SharedChunk(const SharedChunk & rhs)
SharedChunk(SharedChunk && rhs)
SharedChunk & operator=(const SharedChunk & rhs)
SharedChunk & operator=(SharedChunk && rhs)
ChunkHeader * getChunkHeader() const
void * getUserPayload() const
ChunkManagement * release()
bool operator==(const SharedChunk & rhs) const
bool operator==(const void *const rhs) const
bool operator!=(const SharedChunk & rhs) const
bool operator!=(const void *const rhs) const
operator bool() const

Friends🔗

Name
class SharedPointer

Public Functions Documentation🔗

function SharedChunk🔗

SharedChunk() =default

function SharedChunk🔗

SharedChunk(
    ChunkManagement *const resource
)

function ~SharedChunk🔗

~SharedChunk()

function SharedChunk🔗

SharedChunk(
    const SharedChunk & rhs
)

function SharedChunk🔗

SharedChunk(
    SharedChunk && rhs
)

function operator=🔗

SharedChunk & operator=(
    const SharedChunk & rhs
)

function operator=🔗

SharedChunk & operator=(
    SharedChunk && rhs
)

function getChunkHeader🔗

ChunkHeader * getChunkHeader() const

function getUserPayload🔗

void * getUserPayload() const

function release🔗

ChunkManagement * release()

function operator==🔗

bool operator==(
    const SharedChunk & rhs
) const

function operator==🔗

bool operator==(
    const void *const rhs
) const

Todo: use the newtype pattern to avoid the void pointer

function operator!=🔗

bool operator!=(
    const SharedChunk & rhs
) const

function operator!=🔗

bool operator!=(
    const void *const rhs
) const

function operator bool🔗

operator bool() const

Friends🔗

friend SharedPointer🔗

friend class SharedPointer;

Updated on 31 May 2022 at 15:29:16 CEST