Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
eprosima::fastcdr::Cdr::state Class Reference

This class stores the current state of a CDR serialization. More...

#include <Cdr.h>

Public Member Functions

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

Private Member Functions

stateoperator= (const state &state)=delete
 

Private Attributes

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

Friends

class Cdr
 

Detailed Description

This class stores the current state of a CDR serialization.

Definition at line 104 of file Cdr.h.

Constructor & Destructor Documentation

◆ state() [1/2]

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

Default constructor.

Definition at line 95 of file Cdr.cpp.

◆ state() [2/2]

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

Copy constructor.

Definition at line 106 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 117 of file Cdr.cpp.

Friends And Related Function Documentation

◆ Cdr

friend class Cdr
friend

Definition at line 106 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 147 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 150 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 138 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 144 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 141 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 129 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 132 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 153 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 135 of file Cdr.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52