CARLA
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
geometry_msgs::msg::Point32 Class Reference

This class represents the structure Point32 defined by the user in the IDL file. More...

#include <Point32.h>

+ Collaboration diagram for geometry_msgs::msg::Point32:

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 Point32 &x) const
 Comparison operator. More...
 
eProsima_user_DllExport Point32operator= (const Point32 &x)
 Copy assignment. More...
 
eProsima_user_DllExport Point32operator= (Point32 &&x) noexcept
 Move assignment. More...
 
eProsima_user_DllExport bool operator== (const Point32 &x) const
 Comparison operator. More...
 
eProsima_user_DllExport Point32 ()
 Default constructor. More...
 
eProsima_user_DllExport Point32 (const Point32 &x)
 Copy constructor. More...
 
eProsima_user_DllExport Point32 (Point32 &&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 (float _x)
 This function sets a value in member x. More...
 
eProsima_user_DllExport float x () const
 This function returns the value of member x. More...
 
eProsima_user_DllExport float & x ()
 This function returns a reference to member x. More...
 
eProsima_user_DllExport void y (float _y)
 This function sets a value in member y. More...
 
eProsima_user_DllExport float y () const
 This function returns the value of member y. More...
 
eProsima_user_DllExport float & y ()
 This function returns a reference to member y. More...
 
eProsima_user_DllExport void z (float _z)
 This function sets a value in member z. More...
 
eProsima_user_DllExport float z () const
 This function returns the value of member z. More...
 
eProsima_user_DllExport float & z ()
 This function returns a reference to member z. More...
 
eProsima_user_DllExport ~Point32 ()
 Default destructor. More...
 

Static Public Member Functions

static eProsima_user_DllExport size_t getCdrSerializedSize (const geometry_msgs::msg::Point32 &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

float m_x
 
float m_y
 
float m_z
 

Detailed Description

This class represents the structure Point32 defined by the user in the IDL file.

Definition at line 70 of file Point32.h.

Constructor & Destructor Documentation

◆ Point32() [1/3]

geometry_msgs::msg::Point32::Point32 ( )

Default constructor.

Definition at line 40 of file Point32.cpp.

◆ ~Point32()

geometry_msgs::msg::Point32::~Point32 ( )

Default destructor.

Definition at line 50 of file Point32.cpp.

◆ Point32() [2/3]

geometry_msgs::msg::Point32::Point32 ( const Point32 x)

Copy constructor.

Parameters
xReference to the object geometry_msgs::msg::Point32 that will be copied.

Definition at line 54 of file Point32.cpp.

References m_x, m_y, and m_z.

◆ Point32() [3/3]

geometry_msgs::msg::Point32::Point32 ( Point32 &&  x)
noexcept

Move constructor.

Parameters
xReference to the object geometry_msgs::msg::Point32 that will be copied.

Definition at line 62 of file Point32.cpp.

Member Function Documentation

◆ deserialize()

void geometry_msgs::msg::Point32::deserialize ( eprosima::fastcdr::Cdr &  cdr)

This function deserializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 130 of file Point32.cpp.

Referenced by geometry_msgs::msg::Point32PubSubType::deserialize().

+ Here is the caller graph for this function:

◆ getCdrSerializedSize()

size_t geometry_msgs::msg::Point32::getCdrSerializedSize ( const geometry_msgs::msg::Point32 data,
size_t  current_alignment = 0 
)
static

This function returns the serialized size of a data depending on the buffer alignment.

Parameters
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
Returns
Serialized size.

Definition at line 109 of file Point32.cpp.

Referenced by geometry_msgs::msg::Point32PubSubType::getSerializedSizeProvider().

+ Here is the caller graph for this function:

◆ getKeyMaxCdrSerializedSize()

size_t geometry_msgs::msg::Point32::getKeyMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

Definition at line 222 of file Point32.cpp.

References geometry_msgs_msg_Point32_max_key_cdr_typesize.

Referenced by geometry_msgs::msg::Point32PubSubType::getKey(), and geometry_msgs::msg::Point32PubSubType::Point32PubSubType().

+ Here is the caller graph for this function:

◆ getMaxCdrSerializedSize()

size_t geometry_msgs::msg::Point32::getMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

Definition at line 102 of file Point32.cpp.

References geometry_msgs_msg_Point32_max_cdr_typesize.

Referenced by geometry_msgs::msg::Point32PubSubType::Point32PubSubType().

+ Here is the caller graph for this function:

◆ isKeyDefined()

bool geometry_msgs::msg::Point32::isKeyDefined ( )
static

This function tells you if the Key has been defined for this type.

Definition at line 229 of file Point32.cpp.

Referenced by geometry_msgs::msg::Point32PubSubType::Point32PubSubType().

+ Here is the caller graph for this function:

◆ operator!=()

bool geometry_msgs::msg::Point32::operator!= ( const Point32 x) const

Comparison operator.

Parameters
xgeometry_msgs::msg::Point32 object to compare.

Definition at line 96 of file Point32.cpp.

◆ operator=() [1/2]

geometry_msgs::msg::Point32 & geometry_msgs::msg::Point32::operator= ( const Point32 x)

Copy assignment.

Parameters
xReference to the object geometry_msgs::msg::Point32 that will be copied.

Definition at line 70 of file Point32.cpp.

References m_x, m_y, and m_z.

◆ operator=() [2/2]

geometry_msgs::msg::Point32 & geometry_msgs::msg::Point32::operator= ( Point32 &&  x)
noexcept

Move assignment.

Parameters
xReference to the object geometry_msgs::msg::Point32 that will be copied.

Definition at line 80 of file Point32.cpp.

References m_x.

◆ operator==()

bool geometry_msgs::msg::Point32::operator== ( const Point32 x) const

Comparison operator.

Parameters
xgeometry_msgs::msg::Point32 object to compare.

Definition at line 90 of file Point32.cpp.

References m_x, m_y, and m_z.

◆ serialize()

void geometry_msgs::msg::Point32::serialize ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 122 of file Point32.cpp.

Referenced by geometry_msgs::msg::Point32PubSubType::serialize().

+ Here is the caller graph for this function:

◆ serializeKey()

void geometry_msgs::msg::Point32::serializeKey ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes the key members of an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 234 of file Point32.cpp.

Referenced by geometry_msgs::msg::Point32PubSubType::getKey().

+ Here is the caller graph for this function:

◆ x() [1/3]

void geometry_msgs::msg::Point32::x ( float  _x)

This function sets a value in member x.

Parameters
_xNew value for member x

Definition at line 142 of file Point32.cpp.

◆ x() [2/3]

float geometry_msgs::msg::Point32::x ( ) const

This function returns the value of member x.

Returns
Value of member x

Definition at line 152 of file Point32.cpp.

◆ x() [3/3]

float & geometry_msgs::msg::Point32::x ( )

This function returns a reference to member x.

Returns
Reference to member x

Definition at line 161 of file Point32.cpp.

◆ y() [1/3]

void geometry_msgs::msg::Point32::y ( float  _y)

This function sets a value in member y.

Parameters
_yNew value for member y

Definition at line 170 of file Point32.cpp.

◆ y() [2/3]

float geometry_msgs::msg::Point32::y ( ) const

This function returns the value of member y.

Returns
Value of member y

Definition at line 180 of file Point32.cpp.

◆ y() [3/3]

float & geometry_msgs::msg::Point32::y ( )

This function returns a reference to member y.

Returns
Reference to member y

Definition at line 189 of file Point32.cpp.

◆ z() [1/3]

void geometry_msgs::msg::Point32::z ( float  _z)

This function sets a value in member z.

Parameters
_zNew value for member z

Definition at line 198 of file Point32.cpp.

◆ z() [2/3]

float geometry_msgs::msg::Point32::z ( ) const

This function returns the value of member z.

Returns
Value of member z

Definition at line 208 of file Point32.cpp.

◆ z() [3/3]

float & geometry_msgs::msg::Point32::z ( )

This function returns a reference to member z.

Returns
Reference to member z

Definition at line 217 of file Point32.cpp.

Member Data Documentation

◆ m_x

float geometry_msgs::msg::Point32::m_x
private

Definition at line 238 of file Point32.h.

Referenced by operator=(), operator==(), and Point32().

◆ m_y

float geometry_msgs::msg::Point32::m_y
private

Definition at line 239 of file Point32.h.

Referenced by operator=(), operator==(), and Point32().

◆ m_z

float geometry_msgs::msg::Point32::m_z
private

Definition at line 240 of file Point32.h.

Referenced by operator=(), operator==(), and Point32().


The documentation for this class was generated from the following files: