Class TypeObject
Defined in File TypeObject.h
Class Documentation
-
class TypeObject
Public Functions
-
RTPS_DllAPI TypeObject()
Default constructor.
-
RTPS_DllAPI ~TypeObject()
Default destructor.
-
RTPS_DllAPI TypeObject(const TypeObject &x)
Copy constructor.
- Parameters:
x – Reference to the object TypeObject that will be copied.
-
RTPS_DllAPI TypeObject(TypeObject &&x)
Move constructor.
- Parameters:
x – Reference to the object TypeObject that will be copied.
- RTPS_DllAPI TypeObject & operator= (const TypeObject &x)
Copy assignment.
- Parameters:
x – Reference to the object TypeObject that will be copied.
- RTPS_DllAPI TypeObject & operator= (TypeObject &&x)
Move assignment.
- Parameters:
x – Reference to the object TypeObject that will be copied.
- RTPS_DllAPI void _d (uint8_t __d)
This function sets the discriminator value.
- Parameters:
__d – New value for the discriminator.
- Throws:
eprosima::fastcdr::BadParamException – This exception is thrown if the new value doesn’t correspond to the selected union member.
- RTPS_DllAPI uint8_t _d () const
This function returns the value of the discriminator.
- Returns:
Value of the discriminator
- RTPS_DllAPI uint8_t & _d ()
This function returns a reference to the discriminator.
- Returns:
Reference to the discriminator.
- RTPS_DllAPI void complete (const CompleteTypeObject &_complete)
This function copies the value in member complete.
- Parameters:
_complete – New value to be copied in member complete
- RTPS_DllAPI void complete (CompleteTypeObject &&_complete)
This function moves the value in member complete.
- Parameters:
_complete – New value to be moved in member complete
- RTPS_DllAPI const CompleteTypeObject & complete () const
This function returns a constant reference to member complete.
- Throws:
eprosima::fastcdr::BadParamException – This exception is thrown if the requested union member is not the current selection.
- Returns:
Constant reference to member complete
- RTPS_DllAPI CompleteTypeObject & complete ()
This function returns a reference to member complete.
- Throws:
eprosima::fastcdr::BadParamException – This exception is thrown if the requested union member is not the current selection.
- Returns:
Reference to member complete
- RTPS_DllAPI void minimal (const MinimalTypeObject &_minimal)
This function copies the value in member minimal.
- Parameters:
_minimal – New value to be copied in member minimal
- RTPS_DllAPI void minimal (MinimalTypeObject &&_minimal)
This function moves the value in member minimal.
- Parameters:
_minimal – New value to be moved in member minimal
- RTPS_DllAPI const MinimalTypeObject & minimal () const
This function returns a constant reference to member minimal.
- Throws:
eprosima::fastcdr::BadParamException – This exception is thrown if the requested union member is not the current selection.
- Returns:
Constant reference to member minimal
- RTPS_DllAPI MinimalTypeObject & minimal ()
This function returns a reference to member minimal.
- Throws:
eprosima::fastcdr::BadParamException – This exception is thrown if the requested union member is not the current selection.
- Returns:
Reference to member minimal
- FASTDDS_SER_METHOD_DEPRECATED (3, "eprosima::fastrtps::types::TypeObject::getCdrSerializedSize()", "In favor of version using eprosima::fastcdr::calculate_serialized_size.") RTPS_DllAPI static size_t getCdrSerializedSize(const TypeObject &data
This function returns the serialized size of a data depending on the buffer alignment.
- Parameters:
data – Data which is calculated its serialized size.
current_alignment – Buffer alignment.
- Returns:
Serialized size.
- FASTDDS_SER_METHOD_DEPRECATED(3, "eprosima::fastrtps::types::TypeObject::serialize()", "In favor of version using eprosima::fastcdr::serialize.") RTPS_DllAPI void serialize(eprosima FASTDDS_SER_METHOD_DEPRECATED(3, "eprosima::fastrtps::types::TypeObject::deserialize()", "In favor of version using eprosima::fastcdr::deserialize.") RTPS_DllAPI void deserialize(eprosima RTPS_DllAPI bool operator== (const TypeObject &other) const
This function serializes an object using CDR serialization.
This function deserializes an object using CDR serialization.
- Parameters:
cdr – CDR serialization object.
cdr – CDR serialization object.
- RTPS_DllAPI bool consistent (const TypeObject &x, const fastdds::dds::TypeConsistencyEnforcementQosPolicy &consistency) const
This function check type consistency enforcement with the given TypeObject x.
- Parameters:
x – TypeObject to check if can be assigned to the current instance.
consistency – fastdds::dds::TypeConsistencyEnforcementQoSPolicy to apply.
Public Members
- size_t current_alignment = 0)
-
RTPS_DllAPI TypeObject()