This class represents the structure Clock defined by the user in the IDL file. More...
#include <Clock.h>
Public Member Functions | |
eProsima_user_DllExport | Clock () |
Default constructor. More... | |
eProsima_user_DllExport | Clock (const Clock &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Clock (Clock &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport void | clock (const builtin_interfaces::msg::Time &_clock) |
This function copies the value in member clock. More... | |
eProsima_user_DllExport void | clock (builtin_interfaces::msg::Time &&_clock) |
This function moves the value in member clock. More... | |
eProsima_user_DllExport const builtin_interfaces::msg::Time & | clock () const |
This function returns a constant reference to member clock. More... | |
eProsima_user_DllExport builtin_interfaces::msg::Time & | clock () |
This function returns a reference to member clock. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport bool | operator!= (const Clock &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Clock & | operator= (const Clock &x) |
Copy assignment. More... | |
eProsima_user_DllExport Clock & | operator= (Clock &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Clock &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. More... | |
eProsima_user_DllExport | ~Clock () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const rosgraph::msg::Clock &data, size_t current_alignment=0) |
This function returns the serialized size of a data depending on the buffer alignment. More... | |
static eProsima_user_DllExport 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. More... | |
static eProsima_user_DllExport size_t | getMaxCdrSerializedSize (size_t current_alignment=0) |
This function returns the maximum serialized size of an object depending on the buffer alignment. More... | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type. More... | |
Private Attributes | |
builtin_interfaces::msg::Time | m_clock |
This class represents the structure Clock defined by the user in the IDL file.
rosgraph::msg::Clock::Clock | ( | const Clock & | x | ) |
Copy constructor.
x | Reference to the object rosgraph::msg::Clock that will be copied. |
Definition at line 50 of file Clock.cpp.
References m_clock.
|
noexcept |
Move constructor.
x | Reference to the object rosgraph::msg::Clock that will be copied. |
void rosgraph::msg::Clock::clock | ( | const builtin_interfaces::msg::Time & | _clock | ) |
This function copies the value in member clock.
_clock | New value to be copied in member clock |
Definition at line 124 of file Clock.cpp.
Referenced by getCdrSerializedSize().
void rosgraph::msg::Clock::clock | ( | builtin_interfaces::msg::Time && | _clock | ) |
const builtin_interfaces::msg::Time & rosgraph::msg::Clock::clock | ( | ) | const |
builtin_interfaces::msg::Time & rosgraph::msg::Clock::clock | ( | ) |
void rosgraph::msg::Clock::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 114 of file Clock.cpp.
Referenced by rosgraph::msg::ClockPubSubType::deserialize().
|
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. |
Definition at line 95 of file Clock.cpp.
References clock(), and builtin_interfaces::msg::Time::getCdrSerializedSize().
Referenced by rosgraph::msg::ClockPubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 158 of file Clock.cpp.
References rosgraph_msg_Clock_max_key_cdr_typesize.
Referenced by rosgraph::msg::ClockPubSubType::ClockPubSubType(), and rosgraph::msg::ClockPubSubType::getKey().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 88 of file Clock.cpp.
References rosgraph_msg_Clock_max_cdr_typesize.
Referenced by rosgraph::msg::ClockPubSubType::ClockPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 165 of file Clock.cpp.
Referenced by rosgraph::msg::ClockPubSubType::ClockPubSubType().
bool rosgraph::msg::Clock::operator!= | ( | const Clock & | x | ) | const |
Comparison operator.
x | rosgraph::msg::Clock object to compare. |
rosgraph::msg::Clock & rosgraph::msg::Clock::operator= | ( | const Clock & | x | ) |
Copy assignment.
x | Reference to the object rosgraph::msg::Clock that will be copied. |
Definition at line 62 of file Clock.cpp.
References m_clock.
|
noexcept |
Move assignment.
x | Reference to the object rosgraph::msg::Clock that will be copied. |
Definition at line 69 of file Clock.cpp.
References m_clock.
bool rosgraph::msg::Clock::operator== | ( | const Clock & | x | ) | const |
Comparison operator.
x | rosgraph::msg::Clock object to compare. |
Definition at line 76 of file Clock.cpp.
References m_clock.
void rosgraph::msg::Clock::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 108 of file Clock.cpp.
Referenced by rosgraph::msg::ClockPubSubType::serialize().
void rosgraph::msg::Clock::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 170 of file Clock.cpp.
Referenced by rosgraph::msg::ClockPubSubType::getKey().
|
private |
Definition at line 209 of file Clock.h.
Referenced by Clock(), operator=(), and operator==().