pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
eprosima::fastcdr::Cdr::state Class Reference

Detailed Description

This class stores the current state of a CDR serialization.

Definition at line 105 of file Cdr.h.

#include <Cdr.h>

Public Member Functions

Cdr_DllAPI state (const Cdr &cdr)
 Default constructor.
 
Cdr_DllAPI state (const state &state)
 Copy constructor.
 
Cdr_DllAPI bool operator== (const state &other_state) const
 Compares two states.
 

Private Member Functions

stateoperator= (const state &state)=delete
 

Private Attributes

const FastBuffer::iterator offset_
 The position in the buffer when the state was created.
 
const FastBuffer::iterator origin_
 The position from the alignment is calculated, when the state was created.
 
bool swap_bytes_ {false}
 This attribute specifies if it is needed to swap the bytes when the state is created.
 
size_t last_data_size_ {0}
 Stores the last datasize serialized/deserialized when the state was created.
 
MemberId next_member_id_
 Not related with the state. Next member id which will be encoded.
 
uint32_t member_size_ {0}
 Not related with the state. Used by encoding algorithms to set the encoded member size.
 
XCdrHeaderSelection header_selection_ {XCdrHeaderSelection::AUTO_WITH_SHORT_HEADER_BY_DEFAULT}
 Not related with the state. Used by encoding algorithms to store the selected member header version.
 
XCdrHeaderSelection header_serialized_ {XCdrHeaderSelection::SHORT_HEADER}
 Not related with the state. Used by encoding algorithms to store the allocated member header version.
 
EncodingAlgorithmFlag previous_encoding_ {EncodingAlgorithmFlag::PLAIN_CDR2}
 Not related with the state. Used by encoding algorithms to store the previous encoding algorithm.
 

Friends

class Cdr
 

Constructor & Destructor Documentation

◆ state() [1/2]

eprosima::fastcdr::Cdr::state::state ( const Cdr cdr)

Default constructor.

Definition at line 98 of file Cdr.cpp.

◆ state() [2/2]

eprosima::fastcdr::Cdr::state::state ( const state state)

Copy constructor.

Definition at line 109 of file Cdr.cpp.

Member Function Documentation

◆ operator=()

state & eprosima::fastcdr::Cdr::state::operator= ( const state state)
privatedelete

◆ operator==()

bool eprosima::fastcdr::Cdr::state::operator== ( const state other_state) const

Compares two states.

Definition at line 120 of file Cdr.cpp.

Friends And Related Symbol Documentation

◆ Cdr

friend class Cdr
friend

Definition at line 107 of file Cdr.h.

Member Data Documentation

◆ header_selection_

XCdrHeaderSelection eprosima::fastcdr::Cdr::state::header_selection_ {XCdrHeaderSelection::AUTO_WITH_SHORT_HEADER_BY_DEFAULT}
private

Not related with the state. Used by encoding algorithms to store the selected member header version.

Definition at line 148 of file Cdr.h.

◆ header_serialized_

XCdrHeaderSelection eprosima::fastcdr::Cdr::state::header_serialized_ {XCdrHeaderSelection::SHORT_HEADER}
private

Not related with the state. Used by encoding algorithms to store the allocated member header version.

Definition at line 151 of file Cdr.h.

◆ last_data_size_

size_t eprosima::fastcdr::Cdr::state::last_data_size_ {0}
private

Stores the last datasize serialized/deserialized when the state was created.

Definition at line 139 of file Cdr.h.

◆ member_size_

uint32_t eprosima::fastcdr::Cdr::state::member_size_ {0}
private

Not related with the state. Used by encoding algorithms to set the encoded member size.

Definition at line 145 of file Cdr.h.

◆ next_member_id_

MemberId eprosima::fastcdr::Cdr::state::next_member_id_
private

Not related with the state. Next member id which will be encoded.

Definition at line 142 of file Cdr.h.

◆ offset_

const FastBuffer::iterator eprosima::fastcdr::Cdr::state::offset_
private

The position in the buffer when the state was created.

Definition at line 130 of file Cdr.h.

◆ origin_

const FastBuffer::iterator eprosima::fastcdr::Cdr::state::origin_
private

The position from the alignment is calculated, when the state was created.

Definition at line 133 of file Cdr.h.

◆ previous_encoding_

EncodingAlgorithmFlag eprosima::fastcdr::Cdr::state::previous_encoding_ {EncodingAlgorithmFlag::PLAIN_CDR2}
private

Not related with the state. Used by encoding algorithms to store the previous encoding algorithm.

Definition at line 154 of file Cdr.h.

◆ swap_bytes_

bool eprosima::fastcdr::Cdr::state::swap_bytes_ {false}
private

This attribute specifies if it is needed to swap the bytes when the state is created.

Definition at line 136 of file Cdr.h.


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