This class represents the structure Float32 defined by the user in the IDL file. 更多...
#include <Float32.h>
Public 成员函数 | |
eProsima_user_DllExport float & | data () |
This function returns a reference to member data | |
eProsima_user_DllExport float | data () const |
This function returns the value of member data | |
eProsima_user_DllExport void | data (float _data) |
This function sets a value in member data | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. | |
eProsima_user_DllExport | Float32 () |
Default constructor. | |
eProsima_user_DllExport | Float32 (const Float32 &x) |
Copy constructor. | |
eProsima_user_DllExport | Float32 (Float32 &&x) noexcept |
Move constructor. | |
eProsima_user_DllExport bool | operator!= (const Float32 &x) const |
Comparison operator. | |
eProsima_user_DllExport Float32 & | operator= (const Float32 &x) |
Copy assignment. | |
eProsima_user_DllExport Float32 & | operator= (Float32 &&x) noexcept |
Move assignment. | |
eProsima_user_DllExport bool | operator== (const Float32 &x) const |
Comparison operator. | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. | |
eProsima_user_DllExport | ~Float32 () |
Default destructor. | |
静态 Public 成员函数 | |
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. | |
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. | |
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. | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type | |
Private 属性 | |
float | m_data |
This class represents the structure Float32 defined by the user in the IDL file.
std_msgs::msg::Float32::Float32 | ( | ) |
std_msgs::msg::Float32::~Float32 | ( | ) |
Default destructor.
在文件 Float32.cpp 第 45 行定义.
std_msgs::msg::Float32::Float32 | ( | const Float32 & | x | ) |
Copy constructor.
x | Reference to the object std_msgs::msg::Float32 that will be copied. |
在文件 Float32.cpp 第 49 行定义.
引用了 m_data.
|
noexcept |
Move constructor.
x | Reference to the object std_msgs::msg::Float32 that will be copied. |
在文件 Float32.cpp 第 55 行定义.
float & std_msgs::msg::Float32::data | ( | ) |
This function returns a reference to member data
在文件 Float32.cpp 第 139 行定义.
float std_msgs::msg::Float32::data | ( | ) | const |
void std_msgs::msg::Float32::data | ( | float | _data | ) |
This function sets a value in member data
_data | New value for member data |
在文件 Float32.cpp 第 120 行定义.
void std_msgs::msg::Float32::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
在文件 Float32.cpp 第 110 行定义.
被这些函数引用 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. |
在文件 Float32.cpp 第 94 行定义.
被这些函数引用 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. |
在文件 Float32.cpp 第 144 行定义.
引用了 std_msgs_msg_Float32_max_key_cdr_typesize.
被这些函数引用 std_msgs::msg::Float32PubSubType::Float32PubSubType() , 以及 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. |
在文件 Float32.cpp 第 87 行定义.
引用了 std_msgs_msg_Float32_max_cdr_typesize.
被这些函数引用 std_msgs::msg::Float32PubSubType::Float32PubSubType().
|
static |
This function tells you if the Key has been defined for this type
在文件 Float32.cpp 第 151 行定义.
被这些函数引用 std_msgs::msg::Float32PubSubType::Float32PubSubType().
bool std_msgs::msg::Float32::operator!= | ( | const Float32 & | x | ) | const |
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. |
在文件 Float32.cpp 第 61 行定义.
引用了 m_data.
|
noexcept |
Move assignment.
x | Reference to the object std_msgs::msg::Float32 that will be copied. |
在文件 Float32.cpp 第 68 行定义.
引用了 m_data.
bool std_msgs::msg::Float32::operator== | ( | const Float32 & | x | ) | const |
Comparison operator.
x | std_msgs::msg::Float32 object to compare. |
在文件 Float32.cpp 第 75 行定义.
引用了 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. |
在文件 Float32.cpp 第 104 行定义.
被这些函数引用 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. |
在文件 Float32.cpp 第 156 行定义.
被这些函数引用 std_msgs::msg::Float32PubSubType::getKey().
|
private |
被这些函数引用 Float32(), Float32(), operator=(), operator=() , 以及 operator==().