iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::internal::ResizableMemoryPublishSubscribe< Service > Class Template Reference

Internal helper class to handle dynamic memory allocations used in e.g. flatbuffers. More...

#include <resizable_memory_publish_subscribe.hpp>

Inheritance diagram for iox2::internal::ResizableMemoryPublishSubscribe< Service >:

Public Member Functions

 ResizableMemoryPublishSubscribe (const ResizableMemoryPublishSubscribe &)=delete
 ResizableMemoryPublishSubscribe (ResizableMemoryPublishSubscribe &&) noexcept
 ~ResizableMemoryPublishSubscribe () override
auto operator= (const ResizableMemoryPublishSubscribe &) noexcept -> ResizableMemoryPublishSubscribe &=delete
auto operator= (ResizableMemoryPublishSubscribe &&) noexcept -> ResizableMemoryPublishSubscribe &
auto allocate (size_t size) -> uint8_t *override
void deallocate (uint8_t *ptr, size_t size) override
auto reallocate_downward (uint8_t *old_p, size_t old_size, size_t new_size, size_t in_use_back, size_t in_use_front) -> uint8_t *override
auto len () const -> size_t
auto reserved_header_len () const -> size_t
auto as_ptr () const -> const uint8_t *

Friends

template<ServiceType, typename, typename>
class iox2::Publisher

Detailed Description

template<ServiceType Service>
class iox2::internal::ResizableMemoryPublishSubscribe< Service >

Internal helper class to handle dynamic memory allocations used in e.g. flatbuffers.

Definition at line 32 of file resizable_memory_publish_subscribe.hpp.

Constructor & Destructor Documentation

◆ ResizableMemoryPublishSubscribe() [1/2]

◆ ResizableMemoryPublishSubscribe() [2/2]

template<ServiceType Service>
iox2::internal::ResizableMemoryPublishSubscribe< Service >::ResizableMemoryPublishSubscribe ( ResizableMemoryPublishSubscribe< Service > && )
noexcept

◆ ~ResizableMemoryPublishSubscribe()

Member Function Documentation

◆ allocate()

template<ServiceType Service>
auto iox2::internal::ResizableMemoryPublishSubscribe< Service >::allocate ( size_t size) ->uint8_t *override
override

References allocate().

Referenced by allocate().

◆ as_ptr()

template<ServiceType Service>
auto iox2::internal::ResizableMemoryPublishSubscribe< Service >::as_ptr ( ) const->constuint8_t *

References as_ptr().

Referenced by as_ptr().

◆ deallocate()

template<ServiceType Service>
void iox2::internal::ResizableMemoryPublishSubscribe< Service >::deallocate ( uint8_t * ptr,
size_t size )
override

References deallocate().

Referenced by deallocate().

◆ len()

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ reallocate_downward()

template<ServiceType Service>
auto iox2::internal::ResizableMemoryPublishSubscribe< Service >::reallocate_downward ( uint8_t * old_p,
size_t old_size,
size_t new_size,
size_t in_use_back,
size_t in_use_front )->uint8_t *override
override

References reallocate_downward().

Referenced by reallocate_downward().

◆ reserved_header_len()

template<ServiceType Service>
auto iox2::internal::ResizableMemoryPublishSubscribe< Service >::reserved_header_len ( ) const->size_t

References reserved_header_len().

Referenced by reserved_header_len().

◆ iox2::Publisher

template<ServiceType Service>
template<ServiceType, typename, typename>
friend class iox2::Publisher
friend

The documentation for this class was generated from the following file: