Class AppliedAnnotationParameter

Class Documentation

class AppliedAnnotationParameter

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

Public Functions

RTPS_DllAPI AppliedAnnotationParameter()

Default constructor.

RTPS_DllAPI ~AppliedAnnotationParameter()

Default destructor.

RTPS_DllAPI AppliedAnnotationParameter(const AppliedAnnotationParameter &x)

Copy constructor.

Parameters

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

RTPS_DllAPI AppliedAnnotationParameter(AppliedAnnotationParameter &&x)

Move constructor.

Parameters

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

RTPS_DllAPI AppliedAnnotationParameter & operator= (const AppliedAnnotationParameter &x)

Copy assignment.

Parameters

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

RTPS_DllAPI AppliedAnnotationParameter & operator= (AppliedAnnotationParameter &&x)

Move assignment.

Parameters

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

inline void paramname_hash(const NameHash &_paramname_hash)

This function copies the value in member paramname_hash.

Parameters

_paramname_hash – New value to be copied in member paramname_hash

inline void paramname_hash(NameHash &&_paramname_hash)

This function moves the value in member paramname_hash.

Parameters

_paramname_hash – New value to be moved in member paramname_hash

inline const NameHash &paramname_hash() const

This function returns a constant reference to member paramname_hash.

Returns

Constant reference to member paramname_hash

inline NameHash &paramname_hash()

This function returns a reference to member paramname_hash.

Returns

Reference to member paramname_hash

inline void value(const AnnotationParameterValue &_value)

This function copies the value in member value.

Parameters

_value – New value to be copied in member value

inline void value(AnnotationParameterValue &&_value)

This function moves the value in member value.

Parameters

_value – New value to be moved in member value

inline const AnnotationParameterValue &value() const

This function returns a constant reference to member value.

Returns

Constant reference to member value

inline AnnotationParameterValue &value()

This function returns a reference to member value.

Returns

Reference to member value

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

This function serializes an object using CDR serialization.

Parameters

cdr – CDR serialization object.

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

This function deserializes an object using CDR serialization.

Parameters

cdr – CDR serialization object.

RTPS_DllAPI void serializeKey (eprosima::fastcdr::Cdr &cdr) const

This function serializes the key members of an object using CDR serialization.

Parameters

cdr – CDR serialization object.

RTPS_DllAPI bool operator== (const AppliedAnnotationParameter &other) const

Public Static Functions

static RTPS_DllAPI size_t getCdrSerializedSize (const AppliedAnnotationParameter &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.

static RTPS_DllAPI size_t getKeyMaxCdrSerializedSize (size_t current_alignment=0)

This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.

Parameters

current_alignment – Buffer alignment.

Returns

Maximum serialized size.

static RTPS_DllAPI bool isKeyDefined ()

This function tells you if the Key has been defined for this type.