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 | |
state & | operator= (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 |
eprosima::fastcdr::Cdr::state::state | ( | const Cdr & | cdr | ) |
eprosima::fastcdr::Cdr::state::state | ( | const state & | state | ) |
bool eprosima::fastcdr::Cdr::state::operator== | ( | const state & | other_state | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |