This class represents the structure Time defined by the user in the IDL file. More...
#include <Time.h>
Public Member Functions | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | nanosec (uint32_t _nanosec) |
This function sets a value in member nanosec. More... | |
eProsima_user_DllExport uint32_t | nanosec () const |
This function returns the value of member nanosec. More... | |
eProsima_user_DllExport uint32_t & | nanosec () |
This function returns a reference to member nanosec. More... | |
eProsima_user_DllExport bool | operator!= (const Time &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Time & | operator= (const Time &x) |
Copy assignment. More... | |
eProsima_user_DllExport Time & | operator= (Time &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Time &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | sec (int32_t _sec) |
This function sets a value in member sec. More... | |
eProsima_user_DllExport int32_t | sec () const |
This function returns the value of member sec. More... | |
eProsima_user_DllExport int32_t & | sec () |
This function returns a reference to member sec. 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 | Time () |
Default constructor. More... | |
eProsima_user_DllExport | Time (const Time &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Time (Time &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport | ~Time () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const builtin_interfaces::msg::Time &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 | |
uint32_t | m_nanosec |
int32_t | m_sec |
This class represents the structure Time defined by the user in the IDL file.
Definition at line 71 of file ros2/types/Time.h.
builtin_interfaces::msg::Time::Time | ( | ) |
builtin_interfaces::msg::Time::~Time | ( | ) |
builtin_interfaces::msg::Time::Time | ( | const Time & | x | ) |
Copy constructor.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
|
noexcept |
Move constructor.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
void builtin_interfaces::msg::Time::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 122 of file Time.cpp.
Referenced by builtin_interfaces::msg::TimePubSubType::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 103 of file Time.cpp.
Referenced by rosgraph::msg::Clock::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize(), and builtin_interfaces::msg::TimePubSubType::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 185 of file Time.cpp.
References builtin_interfaces_msg_Time_max_key_cdr_typesize.
Referenced by builtin_interfaces::msg::TimePubSubType::getKey(), and builtin_interfaces::msg::TimePubSubType::TimePubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 96 of file Time.cpp.
References builtin_interfaces_msg_Time_max_cdr_typesize.
Referenced by builtin_interfaces::msg::TimePubSubType::TimePubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 192 of file Time.cpp.
Referenced by builtin_interfaces::msg::TimePubSubType::TimePubSubType().
void builtin_interfaces::msg::Time::nanosec | ( | uint32_t | _nanosec | ) |
This function sets a value in member nanosec.
_nanosec | New value for member nanosec |
Definition at line 161 of file Time.cpp.
Referenced by carla::ros2::CarlaDepthCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaISCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaRGBCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaSSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaNormalsCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaDVSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaLineInvasionPublisher::SetData(), carla::ros2::CarlaGNSSPublisher::SetData(), carla::ros2::CarlaIMUPublisher::SetData(), carla::ros2::CarlaTransformPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaCollisionPublisher::SetData(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaSSCameraPublisher::SetData(), carla::ros2::CarlaISCameraPublisher::SetData(), carla::ros2::CarlaDepthCameraPublisher::SetData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetData(), carla::ros2::CarlaNormalsCameraPublisher::SetData(), carla::ros2::CarlaDVSCameraPublisher::SetData(), and carla::ros2::CarlaRGBCameraPublisher::SetImageData().
uint32_t builtin_interfaces::msg::Time::nanosec | ( | ) | const |
uint32_t & builtin_interfaces::msg::Time::nanosec | ( | ) |
bool builtin_interfaces::msg::Time::operator!= | ( | const Time & | x | ) | const |
Comparison operator.
x | builtin_interfaces::msg::Time object to compare. |
builtin_interfaces::msg::Time & builtin_interfaces::msg::Time::operator= | ( | const Time & | x | ) |
Copy assignment.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
|
noexcept |
Move assignment.
x | Reference to the object builtin_interfaces::msg::Time that will be copied. |
Definition at line 75 of file Time.cpp.
References m_sec.
bool builtin_interfaces::msg::Time::operator== | ( | const Time & | x | ) | const |
Comparison operator.
x | builtin_interfaces::msg::Time object to compare. |
void builtin_interfaces::msg::Time::sec | ( | int32_t | _sec | ) |
This function sets a value in member sec.
_sec | New value for member sec |
Definition at line 133 of file Time.cpp.
Referenced by carla::ros2::CarlaDepthCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaISCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaRGBCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaSSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaNormalsCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaDVSCameraPublisher::SetCameraInfoData(), carla::ros2::CarlaLineInvasionPublisher::SetData(), carla::ros2::CarlaGNSSPublisher::SetData(), carla::ros2::CarlaIMUPublisher::SetData(), carla::ros2::CarlaTransformPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaCollisionPublisher::SetData(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaSSCameraPublisher::SetData(), carla::ros2::CarlaISCameraPublisher::SetData(), carla::ros2::CarlaDepthCameraPublisher::SetData(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetData(), carla::ros2::CarlaNormalsCameraPublisher::SetData(), carla::ros2::CarlaDVSCameraPublisher::SetData(), and carla::ros2::CarlaRGBCameraPublisher::SetImageData().
int32_t builtin_interfaces::msg::Time::sec | ( | ) | const |
int32_t & builtin_interfaces::msg::Time::sec | ( | ) |
void builtin_interfaces::msg::Time::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 115 of file Time.cpp.
Referenced by builtin_interfaces::msg::TimePubSubType::serialize().
void builtin_interfaces::msg::Time::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 197 of file Time.cpp.
Referenced by builtin_interfaces::msg::TimePubSubType::getKey().
|
private |
Definition at line 221 of file ros2/types/Time.h.
Referenced by operator=(), operator==(), and Time().
|
private |
Definition at line 220 of file ros2/types/Time.h.
Referenced by operator=(), operator==(), and Time().