#include <TypeObject.h>
Public Member Functions | |
RTPS_DllAPI | TypeObject () |
Default constructor. More... | |
RTPS_DllAPI | ~TypeObject () |
Default destructor. More... | |
RTPS_DllAPI | TypeObject (const TypeObject &x) |
Copy constructor. More... | |
RTPS_DllAPI | TypeObject (TypeObject &&x) |
Move constructor. More... | |
RTPS_DllAPI TypeObject & | operator= (const TypeObject &x) |
Copy assignment. More... | |
RTPS_DllAPI TypeObject & | operator= (TypeObject &&x) |
Move assignment. More... | |
RTPS_DllAPI void | _d (uint8_t __d) |
This function sets the discriminator value. More... | |
RTPS_DllAPI uint8_t | _d () const |
This function returns the value of the discriminator. More... | |
RTPS_DllAPI uint8_t & | _d () |
This function returns a reference to the discriminator. More... | |
RTPS_DllAPI void | complete (const CompleteTypeObject &_complete) |
This function copies the value in member complete. More... | |
RTPS_DllAPI void | complete (CompleteTypeObject &&_complete) |
This function moves the value in member complete. More... | |
RTPS_DllAPI const CompleteTypeObject & | complete () const |
This function returns a constant reference to member complete. More... | |
RTPS_DllAPI CompleteTypeObject & | complete () |
This function returns a reference to member complete. More... | |
RTPS_DllAPI void | minimal (const MinimalTypeObject &_minimal) |
This function copies the value in member minimal. More... | |
RTPS_DllAPI void | minimal (MinimalTypeObject &&_minimal) |
This function moves the value in member minimal. More... | |
RTPS_DllAPI const MinimalTypeObject & | minimal () const |
This function returns a constant reference to member minimal. More... | |
RTPS_DllAPI MinimalTypeObject & | minimal () |
This function returns a reference to member minimal. More... | |
RTPS_DllAPI void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. More... | |
RTPS_DllAPI void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
RTPS_DllAPI bool | operator== (const TypeObject &other) const |
RTPS_DllAPI bool | consistent (const TypeObject &x, const fastdds::dds::TypeConsistencyEnforcementQosPolicy &consistency) const |
This function check type consistency enforcement with the given TypeObject x. More... | |
Static Public Member Functions | |
static RTPS_DllAPI size_t | getCdrSerializedSize (const TypeObject &data, size_t current_alignment=0) |
This function returns the serialized size of a data depending on the buffer alignment. More... | |
RTPS_DllAPI TypeObject | ( | ) |
Default constructor.
RTPS_DllAPI ~TypeObject | ( | ) |
Default destructor.
RTPS_DllAPI TypeObject | ( | const TypeObject & | x | ) |
Copy constructor.
x | Reference to the object TypeObject that will be copied. |
RTPS_DllAPI TypeObject | ( | TypeObject && | x | ) |
Move constructor.
x | Reference to the object TypeObject that will be copied. |
RTPS_DllAPI uint8_t & _d | ( | ) |
This function returns a reference to the discriminator.
RTPS_DllAPI uint8_t _d | ( | ) | const |
This function returns the value of the discriminator.
RTPS_DllAPI void _d | ( | uint8_t | __d | ) |
This function sets the discriminator value.
__d | New value for the discriminator. |
eprosima::fastcdr::BadParamException | This exception is thrown if the new value doesn't correspond to the selected union member. |
RTPS_DllAPI CompleteTypeObject & complete | ( | ) |
This function returns a reference to member complete.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
RTPS_DllAPI const CompleteTypeObject & complete | ( | ) | const |
This function returns a constant reference to member complete.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
RTPS_DllAPI void complete | ( | CompleteTypeObject && | _complete | ) |
This function moves the value in member complete.
_complete | New value to be moved in member complete |
RTPS_DllAPI void complete | ( | const CompleteTypeObject & | _complete | ) |
This function copies the value in member complete.
_complete | New value to be copied in member complete |
RTPS_DllAPI bool consistent | ( | const TypeObject & | x, |
const fastdds::dds::TypeConsistencyEnforcementQosPolicy & | consistency | ||
) | const |
This function check type consistency enforcement with the given TypeObject x.
x | TypeObject to check if can be assigned to the current instance. |
consistency | fastdds::dds::TypeConsistencyEnforcementQoSPolicy to apply. |
RTPS_DllAPI void deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
|
static |
This function returns the serialized size of a data depending on the buffer alignment.
data | Data which is calculated its serialized size. |
current_alignment | Buffer alignment. |
RTPS_DllAPI MinimalTypeObject & minimal | ( | ) |
This function returns a reference to member minimal.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
RTPS_DllAPI const MinimalTypeObject & minimal | ( | ) | const |
This function returns a constant reference to member minimal.
eprosima::fastcdr::BadParamException | This exception is thrown if the requested union member is not the current selection. |
RTPS_DllAPI void minimal | ( | const MinimalTypeObject & | _minimal | ) |
This function copies the value in member minimal.
_minimal | New value to be copied in member minimal |
RTPS_DllAPI void minimal | ( | MinimalTypeObject && | _minimal | ) |
This function moves the value in member minimal.
_minimal | New value to be moved in member minimal |
RTPS_DllAPI TypeObject & operator= | ( | const TypeObject & | x | ) |
Copy assignment.
x | Reference to the object TypeObject that will be copied. |
RTPS_DllAPI TypeObject & operator= | ( | TypeObject && | x | ) |
Move assignment.
x | Reference to the object TypeObject that will be copied. |
RTPS_DllAPI bool operator== | ( | const TypeObject & | other | ) | const |
RTPS_DllAPI void serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |