This class represents the structure Point defined by the user in the IDL file. More...
#include <Point.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 bool | operator!= (const Point &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Point & | operator= (const Point &x) |
Copy assignment. More... | |
eProsima_user_DllExport Point & | operator= (Point &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Point &x) const |
Comparison operator. More... | |
eProsima_user_DllExport | Point () |
Default constructor. More... | |
eProsima_user_DllExport | Point (const Point &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Point (Point &&x) noexcept |
Move constructor. 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 void | x (double _x) |
This function sets a value in member x. More... | |
eProsima_user_DllExport double | x () const |
This function returns the value of member x. More... | |
eProsima_user_DllExport double & | x () |
This function returns a reference to member x. More... | |
eProsima_user_DllExport void | y (double _y) |
This function sets a value in member y. More... | |
eProsima_user_DllExport double | y () const |
This function returns the value of member y. More... | |
eProsima_user_DllExport double & | y () |
This function returns a reference to member y. More... | |
eProsima_user_DllExport void | z (double _z) |
This function sets a value in member z. More... | |
eProsima_user_DllExport double | z () const |
This function returns the value of member z. More... | |
eProsima_user_DllExport double & | z () |
This function returns a reference to member z. More... | |
eProsima_user_DllExport | ~Point () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const geometry_msgs::msg::Point &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 | |
double | m_x |
double | m_y |
double | m_z |
This class represents the structure Point defined by the user in the IDL file.
geometry_msgs::msg::Point::Point | ( | const Point & | x | ) |
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::Point that will be copied. |
void geometry_msgs::msg::Point::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 130 of file Point.cpp.
Referenced by geometry_msgs::msg::PointPubSubType::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 109 of file Point.cpp.
Referenced by geometry_msgs::msg::Pose::getCdrSerializedSize(), and geometry_msgs::msg::PointPubSubType::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 222 of file Point.cpp.
References geometry_msgs_msg_Point_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::PointPubSubType::getKey(), and geometry_msgs::msg::PointPubSubType::PointPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 102 of file Point.cpp.
References geometry_msgs_msg_Point_max_cdr_typesize.
Referenced by geometry_msgs::msg::PointPubSubType::PointPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 229 of file Point.cpp.
Referenced by geometry_msgs::msg::PointPubSubType::PointPubSubType().
bool geometry_msgs::msg::Point::operator!= | ( | const Point & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Point object to compare. |
geometry_msgs::msg::Point & geometry_msgs::msg::Point::operator= | ( | const Point & | x | ) |
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::Point that will be copied. |
Definition at line 80 of file Point.cpp.
References m_x.
bool geometry_msgs::msg::Point::operator== | ( | const Point & | x | ) | const |
void geometry_msgs::msg::Point::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 122 of file Point.cpp.
Referenced by geometry_msgs::msg::PointPubSubType::serialize().
void geometry_msgs::msg::Point::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 234 of file Point.cpp.
Referenced by geometry_msgs::msg::PointPubSubType::getKey().
void geometry_msgs::msg::Point::x | ( | double | _x | ) |
double geometry_msgs::msg::Point::x | ( | ) | const |
double & geometry_msgs::msg::Point::x | ( | ) |
void geometry_msgs::msg::Point::y | ( | double | _y | ) |
double geometry_msgs::msg::Point::y | ( | ) | const |
double & geometry_msgs::msg::Point::y | ( | ) |
void geometry_msgs::msg::Point::z | ( | double | _z | ) |
double geometry_msgs::msg::Point::z | ( | ) | const |
double & geometry_msgs::msg::Point::z | ( | ) |
|
private |
Definition at line 238 of file Point.h.
Referenced by operator=(), operator==(), and Point().
|
private |
Definition at line 239 of file Point.h.
Referenced by operator=(), operator==(), and Point().
|
private |
Definition at line 240 of file Point.h.
Referenced by operator=(), operator==(), and Point().