This class represents the structure Float32 defined by the user in the IDL file. More...
#include <Float32.h>
Public Member Functions | |
eProsima_user_DllExport void | data (float _data) |
This function sets a value in member data. More... | |
eProsima_user_DllExport float | data () const |
This function returns the value of member data. More... | |
eProsima_user_DllExport float & | data () |
This function returns a reference to member data. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport | Float32 () |
Default constructor. More... | |
eProsima_user_DllExport | Float32 (const Float32 &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Float32 (Float32 &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport bool | operator!= (const Float32 &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Float32 & | operator= (const Float32 &x) |
Copy assignment. More... | |
eProsima_user_DllExport Float32 & | operator= (Float32 &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Float32 &x) const |
Comparison operator. 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 | ~Float32 () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const std_msgs::msg::Float32 &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_data |
This class represents the structure Float32 defined by the user in the IDL file.
std_msgs::msg::Float32::Float32 | ( | ) |
Default constructor.
Definition at line 40 of file Float32.cpp.
std_msgs::msg::Float32::~Float32 | ( | ) |
Default destructor.
Definition at line 45 of file Float32.cpp.
std_msgs::msg::Float32::Float32 | ( | const Float32 & | x | ) |
Copy constructor.
x | Reference to the object std_msgs::msg::Float32 that will be copied. |
Definition at line 49 of file Float32.cpp.
References m_data.
|
noexcept |
Move constructor.
x | Reference to the object std_msgs::msg::Float32 that will be copied. |
Definition at line 55 of file Float32.cpp.
void std_msgs::msg::Float32::data | ( | float | _data | ) |
This function sets a value in member data.
_data | New value for member data |
Definition at line 120 of file Float32.cpp.
float std_msgs::msg::Float32::data | ( | ) | const |
This function returns the value of member data.
Definition at line 130 of file Float32.cpp.
float & std_msgs::msg::Float32::data | ( | ) |
This function returns a reference to member data.
Definition at line 139 of file Float32.cpp.
void std_msgs::msg::Float32::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 110 of file Float32.cpp.
Referenced by std_msgs::msg::Float32PubSubType::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 94 of file Float32.cpp.
Referenced by std_msgs::msg::Float32PubSubType::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 144 of file Float32.cpp.
References std_msgs_msg_Float32_max_key_cdr_typesize.
Referenced by std_msgs::msg::Float32PubSubType::Float32PubSubType(), and std_msgs::msg::Float32PubSubType::getKey().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 87 of file Float32.cpp.
References std_msgs_msg_Float32_max_cdr_typesize.
Referenced by std_msgs::msg::Float32PubSubType::Float32PubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 151 of file Float32.cpp.
Referenced by std_msgs::msg::Float32PubSubType::Float32PubSubType().
bool std_msgs::msg::Float32::operator!= | ( | const Float32 & | x | ) | const |
Comparison operator.
x | std_msgs::msg::Float32 object to compare. |
Definition at line 81 of file Float32.cpp.
std_msgs::msg::Float32 & std_msgs::msg::Float32::operator= | ( | const Float32 & | x | ) |
Copy assignment.
x | Reference to the object std_msgs::msg::Float32 that will be copied. |
Definition at line 61 of file Float32.cpp.
References m_data.
|
noexcept |
Move assignment.
x | Reference to the object std_msgs::msg::Float32 that will be copied. |
Definition at line 68 of file Float32.cpp.
References m_data.
bool std_msgs::msg::Float32::operator== | ( | const Float32 & | x | ) | const |
Comparison operator.
x | std_msgs::msg::Float32 object to compare. |
Definition at line 75 of file Float32.cpp.
References m_data.
void std_msgs::msg::Float32::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 104 of file Float32.cpp.
Referenced by std_msgs::msg::Float32PubSubType::serialize().
void std_msgs::msg::Float32::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 156 of file Float32.cpp.
Referenced by std_msgs::msg::Float32PubSubType::getKey().
|
private |
Definition at line 199 of file Float32.h.
Referenced by Float32(), operator=(), and operator==().