This class represents the structure Clock defined by the user in the IDL file. 更多...
#include <Clock.h>
Public 成员函数 | |
eProsima_user_DllExport | Clock () |
Default constructor. | |
eProsima_user_DllExport builtin_interfaces::msg::Time & | clock () |
This function returns a reference to member clock | |
eProsima_user_DllExport const builtin_interfaces::msg::Time & | clock () const |
This function returns a constant reference to member clock | |
eProsima_user_DllExport void | clock (builtin_interfaces::msg::Time &&_clock) |
This function moves the value in member clock | |
eProsima_user_DllExport | Clock (Clock &&x) noexcept |
Move constructor. | |
eProsima_user_DllExport void | clock (const builtin_interfaces::msg::Time &_clock) |
This function copies the value in member clock | |
eProsima_user_DllExport | Clock (const Clock &x) |
Copy constructor. | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. | |
eProsima_user_DllExport bool | operator!= (const Clock &x) const |
Comparison operator. | |
eProsima_user_DllExport Clock & | operator= (Clock &&x) noexcept |
Move assignment. | |
eProsima_user_DllExport Clock & | operator= (const Clock &x) |
Copy assignment. | |
eProsima_user_DllExport bool | operator== (const Clock &x) const |
Comparison operator. | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. | |
eProsima_user_DllExport | ~Clock () |
Default destructor. | |
静态 Public 成员函数 | |
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. | |
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. | |
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. | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type | |
Private 属性 | |
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. |
引用了 m_clock.
|
noexcept |
Move constructor.
x | Reference to the object rosgraph::msg::Clock that will be copied. |
builtin_interfaces::msg::Time & rosgraph::msg::Clock::clock | ( | ) |
const builtin_interfaces::msg::Time & rosgraph::msg::Clock::clock | ( | ) | const |
void rosgraph::msg::Clock::clock | ( | builtin_interfaces::msg::Time && | _clock | ) |
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 |
被这些函数引用 getCdrSerializedSize().
void rosgraph::msg::Clock::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 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. |
引用了 clock() , 以及 builtin_interfaces::msg::Time::getCdrSerializedSize().
被这些函数引用 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. |
引用了 rosgraph_msg_Clock_max_key_cdr_typesize.
被这些函数引用 rosgraph::msg::ClockPubSubType::ClockPubSubType() , 以及 rosgraph::msg::ClockPubSubType::getKey().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
引用了 rosgraph_msg_Clock_max_cdr_typesize.
被这些函数引用 rosgraph::msg::ClockPubSubType::ClockPubSubType().
|
static |
This function tells you if the Key has been defined for this type
被这些函数引用 rosgraph::msg::ClockPubSubType::ClockPubSubType().
bool rosgraph::msg::Clock::operator!= | ( | const Clock & | x | ) | const |
|
noexcept |
rosgraph::msg::Clock & rosgraph::msg::Clock::operator= | ( | const Clock & | x | ) |
bool rosgraph::msg::Clock::operator== | ( | const Clock & | x | ) | const |
void rosgraph::msg::Clock::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 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. |
被这些函数引用 rosgraph::msg::ClockPubSubType::getKey().
|
private |
被这些函数引用 Clock(), operator=(), operator=() , 以及 operator==().