Class TypeObjectHashId
Defined in File TypeObjectHashId.h
Class Documentation
-
class TypeObjectHashId
This class represents the union TypeObjectHashId defined by the user in the IDL file.
Public Functions
-
TypeObjectHashId()
Default constructor.
-
~TypeObjectHashId()
Default destructor.
-
TypeObjectHashId(const TypeObjectHashId &x)
Copy constructor.
- Parameters:
x – Reference to the object TypeObjectHashId that will be copied.
-
TypeObjectHashId(TypeObjectHashId &&x)
Move constructor.
- Parameters:
x – Reference to the object TypeObjectHashId that will be copied.
-
TypeObjectHashId &operator=(const TypeObjectHashId &x)
Copy assignment.
- Parameters:
x – Reference to the object TypeObjectHashId that will be copied.
-
TypeObjectHashId &operator=(TypeObjectHashId &&x)
Move assignment.
- Parameters:
x – Reference to the object TypeObjectHashId that will be copied.
-
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.
-
uint8_t _d() const
This function returns the value of the discriminator.
- Returns:
Value of the discriminator
-
uint8_t &_d()
This function returns a reference to the discriminator.
- Returns:
Reference to the discriminator.
-
void hash(const EquivalenceHash &_hash)
This function copies the value in member hash.
- Parameters:
_hash – New value to be copied in member hash
-
void hash(EquivalenceHash &&_hash)
This function moves the value in member hash.
- Parameters:
_hash – New value to be moved in member hash
-
const EquivalenceHash &hash() const
This function returns a constant reference to member hash.
- Throws:
eprosima::fastcdr::BadParamException – This exception is thrown if the requested union member is not the current selection.
- Returns:
Constant reference to member hash
-
EquivalenceHash &hash()
This function returns a reference to member hash.
- Throws:
eprosima::fastcdr::BadParamException – This exception is thrown if the requested union member is not the current selection.
- Returns:
Reference to member hash
-
void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
- Parameters:
cdr – CDR serialization object.
-
void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
- Parameters:
cdr – CDR serialization object.
-
void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
- Parameters:
cdr – CDR serialization object.
Public Static Functions
-
static 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 bool isKeyDefined()
This function tells you if the Key has been defined for this type.
-
TypeObjectHashId()