This class represents the structure PointField defined by the user in the IDL file. More...
#include <PointField.h>
Public Member Functions | |
eProsima_user_DllExport void | count (uint32_t _count) |
This function sets a value in member count. More... | |
eProsima_user_DllExport uint32_t | count () const |
This function returns the value of member count. More... | |
eProsima_user_DllExport uint32_t & | count () |
This function returns a reference to member count. More... | |
eProsima_user_DllExport void | datatype (uint8_t _datatype) |
This function sets a value in member datatype. More... | |
eProsima_user_DllExport uint8_t | datatype () const |
This function returns the value of member datatype. More... | |
eProsima_user_DllExport uint8_t & | datatype () |
This function returns a reference to member datatype. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | name (const std::string &_name) |
This function copies the value in member name. More... | |
eProsima_user_DllExport void | name (std::string &&_name) |
This function moves the value in member name. More... | |
eProsima_user_DllExport const std::string & | name () const |
This function returns a constant reference to member name. More... | |
eProsima_user_DllExport std::string & | name () |
This function returns a reference to member name. More... | |
eProsima_user_DllExport void | offset (uint32_t _offset) |
This function sets a value in member offset. More... | |
eProsima_user_DllExport uint32_t | offset () const |
This function returns the value of member offset. More... | |
eProsima_user_DllExport uint32_t & | offset () |
This function returns a reference to member offset. More... | |
eProsima_user_DllExport bool | operator!= (const PointField &x) const |
Comparison operator. More... | |
eProsima_user_DllExport PointField & | operator= (const PointField &x) |
Copy assignment. More... | |
eProsima_user_DllExport PointField & | operator= (PointField &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const PointField &x) const |
Comparison operator. More... | |
eProsima_user_DllExport | PointField () |
Default constructor. More... | |
eProsima_user_DllExport | PointField (const PointField &x) |
Copy constructor. More... | |
eProsima_user_DllExport | PointField (PointField &&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 | ~PointField () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const sensor_msgs::msg::PointField &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_count |
uint8_t | m_datatype |
std::string | m_name |
uint32_t | m_offset |
This class represents the structure PointField defined by the user in the IDL file.
Definition at line 79 of file PointField.h.
sensor_msgs::msg::PointField::PointField | ( | ) |
Default constructor.
Definition at line 40 of file PointField.cpp.
sensor_msgs::msg::PointField::~PointField | ( | ) |
Default destructor.
Definition at line 52 of file PointField.cpp.
sensor_msgs::msg::PointField::PointField | ( | const PointField & | x | ) |
Copy constructor.
x | Reference to the object sensor_msgs::msg::PointField that will be copied. |
Definition at line 56 of file PointField.cpp.
References m_count, m_datatype, m_name, and m_offset.
|
noexcept |
Move constructor.
x | Reference to the object sensor_msgs::msg::PointField that will be copied. |
Definition at line 65 of file PointField.cpp.
void sensor_msgs::msg::PointField::count | ( | uint32_t | _count | ) |
This function sets a value in member count.
_count | New value for member count |
Definition at line 244 of file PointField.cpp.
Referenced by carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), and carla::ros2::CarlaDVSCameraPublisher::SetPointCloudData().
uint32_t sensor_msgs::msg::PointField::count | ( | ) | const |
This function returns the value of member count.
Definition at line 254 of file PointField.cpp.
uint32_t & sensor_msgs::msg::PointField::count | ( | ) |
This function returns a reference to member count.
Definition at line 263 of file PointField.cpp.
void sensor_msgs::msg::PointField::datatype | ( | uint8_t | _datatype | ) |
This function sets a value in member datatype.
_datatype | New value for member datatype |
Definition at line 216 of file PointField.cpp.
Referenced by carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), and carla::ros2::CarlaDVSCameraPublisher::SetPointCloudData().
uint8_t sensor_msgs::msg::PointField::datatype | ( | ) | const |
This function returns the value of member datatype.
Definition at line 226 of file PointField.cpp.
uint8_t & sensor_msgs::msg::PointField::datatype | ( | ) |
This function returns a reference to member datatype.
Definition at line 235 of file PointField.cpp.
void sensor_msgs::msg::PointField::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 137 of file PointField.cpp.
Referenced by sensor_msgs::msg::PointFieldPubSubType::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 115 of file PointField.cpp.
References name().
Referenced by sensor_msgs::msg::PointCloud2::getCdrSerializedSize(), and sensor_msgs::msg::PointFieldPubSubType::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 268 of file PointField.cpp.
References sensor_msgs_msg_PointField_max_key_cdr_typesize.
Referenced by sensor_msgs::msg::PointFieldPubSubType::getKey(), and sensor_msgs::msg::PointFieldPubSubType::PointFieldPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 108 of file PointField.cpp.
References sensor_msgs_msg_PointField_max_cdr_typesize.
Referenced by sensor_msgs::msg::PointFieldPubSubType::PointFieldPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 275 of file PointField.cpp.
Referenced by sensor_msgs::msg::PointFieldPubSubType::PointFieldPubSubType().
void sensor_msgs::msg::PointField::name | ( | const std::string & | _name | ) |
This function copies the value in member name.
_name | New value to be copied in member name |
Definition at line 150 of file PointField.cpp.
Referenced by getCdrSerializedSize(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), and carla::ros2::CarlaDVSCameraPublisher::SetPointCloudData().
void sensor_msgs::msg::PointField::name | ( | std::string && | _name | ) |
This function moves the value in member name.
_name | New value to be moved in member name |
Definition at line 160 of file PointField.cpp.
const std::string & sensor_msgs::msg::PointField::name | ( | ) | const |
This function returns a constant reference to member name.
Definition at line 170 of file PointField.cpp.
std::string & sensor_msgs::msg::PointField::name | ( | ) |
This function returns a reference to member name.
Definition at line 179 of file PointField.cpp.
void sensor_msgs::msg::PointField::offset | ( | uint32_t | _offset | ) |
This function sets a value in member offset.
_offset | New value for member offset |
Definition at line 188 of file PointField.cpp.
Referenced by carla::ros2::CarlaLidarPublisher::SetData(), carla::ros2::CarlaSemanticLidarPublisher::SetData(), carla::ros2::CarlaRadarPublisher::SetData(), and carla::ros2::CarlaDVSCameraPublisher::SetPointCloudData().
uint32_t sensor_msgs::msg::PointField::offset | ( | ) | const |
This function returns the value of member offset.
Definition at line 198 of file PointField.cpp.
uint32_t & sensor_msgs::msg::PointField::offset | ( | ) |
This function returns a reference to member offset.
Definition at line 207 of file PointField.cpp.
bool sensor_msgs::msg::PointField::operator!= | ( | const PointField & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::PointField object to compare. |
Definition at line 102 of file PointField.cpp.
sensor_msgs::msg::PointField & sensor_msgs::msg::PointField::operator= | ( | const PointField & | x | ) |
Copy assignment.
x | Reference to the object sensor_msgs::msg::PointField that will be copied. |
Definition at line 74 of file PointField.cpp.
References m_count, m_datatype, m_name, and m_offset.
|
noexcept |
Move assignment.
x | Reference to the object sensor_msgs::msg::PointField that will be copied. |
Definition at line 85 of file PointField.cpp.
bool sensor_msgs::msg::PointField::operator== | ( | const PointField & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::PointField object to compare. |
Definition at line 96 of file PointField.cpp.
References m_count, m_datatype, m_name, and m_offset.
void sensor_msgs::msg::PointField::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 128 of file PointField.cpp.
Referenced by sensor_msgs::msg::PointFieldPubSubType::serialize().
void sensor_msgs::msg::PointField::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 280 of file PointField.cpp.
Referenced by sensor_msgs::msg::PointFieldPubSubType::getKey().
|
private |
Definition at line 275 of file PointField.h.
Referenced by operator=(), operator==(), and PointField().
|
private |
Definition at line 274 of file PointField.h.
Referenced by operator=(), operator==(), and PointField().
|
private |
Definition at line 272 of file PointField.h.
Referenced by operator=(), operator==(), and PointField().
|
private |
Definition at line 273 of file PointField.h.
Referenced by operator=(), operator==(), and PointField().