Class ExtendedTypeDefn

Class Documentation

class ExtendedTypeDefn

This class represents the structure ExtendedTypeDefn defined by the user in the IDL file.

Public Functions

RTPS_DllAPI ExtendedTypeDefn()

Default constructor.

virtual RTPS_DllAPI ~ExtendedTypeDefn()

Default destructor.

RTPS_DllAPI ExtendedTypeDefn(const ExtendedTypeDefn &x)

Copy constructor.

Parameters

x – Reference to the object ExtendedTypeDefn that will be copied.

RTPS_DllAPI ExtendedTypeDefn(ExtendedTypeDefn &&x)

Move constructor.

Parameters

x – Reference to the object ExtendedTypeDefn that will be copied.

virtual RTPS_DllAPI ExtendedTypeDefn & operator= (const ExtendedTypeDefn &x)

Copy assignment.

Parameters

x – Reference to the object ExtendedTypeDefn that will be copied.

virtual RTPS_DllAPI ExtendedTypeDefn & operator= (ExtendedTypeDefn &&x)

Move assignment.

Parameters

x – Reference to the object ExtendedTypeDefn that will be copied.

virtual RTPS_DllAPI void serialize (eprosima::fastcdr::Cdr &cdr) const

This function serializes an object using CDR serialization.

Parameters

cdr – CDR serialization object.

virtual RTPS_DllAPI void deserialize (eprosima::fastcdr::Cdr &cdr)

This function deserializes an object using CDR serialization.

Parameters

cdr – CDR serialization object.

RTPS_DllAPI bool consistent (const ExtendedTypeDefn &x, const fastdds::dds::TypeConsistencyEnforcementQosPolicy &consistency) const

Public Static Functions

static RTPS_DllAPI size_t getCdrSerializedSize (const ExtendedTypeDefn &data, size_t current_alignment=0)

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.