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

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

#include <resizable_memory_request.hpp>

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

Public Member Functions

 ResizableMemoryRequest (const ResizableMemoryRequest &)=delete
 ResizableMemoryRequest (ResizableMemoryRequest &&) noexcept
 ~ResizableMemoryRequest () override
auto operator= (const ResizableMemoryRequest &) noexcept -> ResizableMemoryRequest &=delete
auto operator= (ResizableMemoryRequest &&) noexcept -> ResizableMemoryRequest &
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, typename, typename>
class iox2::Client

Detailed Description

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

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

Definition at line 32 of file resizable_memory_request.hpp.

Constructor & Destructor Documentation

◆ ResizableMemoryRequest() [1/2]

template<ServiceType Service>
iox2::internal::ResizableMemoryRequest< Service >::ResizableMemoryRequest ( const ResizableMemoryRequest< Service > & )
delete

◆ ResizableMemoryRequest() [2/2]

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

◆ ~ResizableMemoryRequest()

Member Function Documentation

◆ allocate()

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

References allocate().

Referenced by allocate().

◆ as_ptr()

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

References as_ptr().

Referenced by as_ptr().

◆ deallocate()

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

References deallocate().

Referenced by deallocate().

◆ len()

template<ServiceType Service>
auto iox2::internal::ResizableMemoryRequest< Service >::len ( ) const->size_t

References len().

Referenced by len().

◆ operator=() [1/2]

template<ServiceType Service>
auto iox2::internal::ResizableMemoryRequest< Service >::operator= ( const ResizableMemoryRequest< Service > & ) ->ResizableMemoryRequest &=delete
deletenoexcept

◆ operator=() [2/2]

◆ reallocate_downward()

template<ServiceType Service>
auto iox2::internal::ResizableMemoryRequest< 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::ResizableMemoryRequest< Service >::reserved_header_len ( ) const->size_t

References reserved_header_len().

Referenced by reserved_header_len().

◆ iox2::Client

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

Definition at line 54 of file resizable_memory_request.hpp.

References iox2::Client, and ResizableMemoryRequest().

Referenced by iox2::Client.


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