This class represents the structure String defined by the user in the IDL file. 更多...
#include <String.h>
Public 成员函数 | |
eProsima_user_DllExport std::string & | data () |
This function returns a reference to member data | |
eProsima_user_DllExport const std::string & | data () const |
This function returns a constant reference to member data | |
eProsima_user_DllExport void | data (const std::string &_data) |
This function copies the value in member data | |
eProsima_user_DllExport void | data (std::string &&_data) |
This function moves the value in member data | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. | |
eProsima_user_DllExport bool | operator!= (const String &x) const |
Comparison operator. | |
eProsima_user_DllExport String & | operator= (const String &x) |
Copy assignment. | |
eProsima_user_DllExport String & | operator= (String &&x) noexcept |
Move assignment. | |
eProsima_user_DllExport bool | operator== (const String &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 | String () |
Default constructor. | |
eProsima_user_DllExport | String (const String &x) |
Copy constructor. | |
eProsima_user_DllExport | String (String &&x) noexcept |
Move constructor. | |
eProsima_user_DllExport | ~String () |
Default destructor. | |
静态 Public 成员函数 | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const std_msgs::msg::String &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 属性 | |
std::string | m_data |
This class represents the structure String defined by the user in the IDL file.
在文件 ros2/types/String.h 第 70 行定义.
std_msgs::msg::String::String | ( | ) |
std_msgs::msg::String::~String | ( | ) |
Default destructor.
在文件 String.cpp 第 46 行定义.
std_msgs::msg::String::String | ( | const String & | x | ) |
Copy constructor.
x | Reference to the object std_msgs::msg::String that will be copied. |
在文件 String.cpp 第 50 行定义.
引用了 m_data.
|
noexcept |
Move constructor.
x | Reference to the object std_msgs::msg::String that will be copied. |
在文件 String.cpp 第 56 行定义.
std::string & std_msgs::msg::String::data | ( | ) |
This function returns a reference to member data
在文件 String.cpp 第 152 行定义.
const std::string & std_msgs::msg::String::data | ( | ) | const |
This function returns a constant reference to member data
在文件 String.cpp 第 143 行定义.
void std_msgs::msg::String::data | ( | const std::string & | _data | ) |
This function copies the value in member data
_data | New value to be copied in member data |
在文件 String.cpp 第 123 行定义.
被这些函数引用 getCdrSerializedSize().
void std_msgs::msg::String::data | ( | std::string && | _data | ) |
This function moves the value in member data
_data | New value to be moved in member data |
在文件 String.cpp 第 133 行定义.
void std_msgs::msg::String::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
在文件 String.cpp 第 113 行定义.
被这些函数引用 std_msgs::msg::StringPubSubType::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. |
在文件 String.cpp 第 97 行定义.
引用了 data().
被这些函数引用 std_msgs::msg::StringPubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
在文件 String.cpp 第 157 行定义.
引用了 std_msgs_msg_String_max_key_cdr_typesize.
被这些函数引用 std_msgs::msg::StringPubSubType::getKey() , 以及 std_msgs::msg::StringPubSubType::StringPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
在文件 String.cpp 第 90 行定义.
引用了 std_msgs_msg_String_max_cdr_typesize.
被这些函数引用 std_msgs::msg::StringPubSubType::StringPubSubType().
|
static |
This function tells you if the Key has been defined for this type
在文件 String.cpp 第 164 行定义.
被这些函数引用 std_msgs::msg::StringPubSubType::StringPubSubType().
bool std_msgs::msg::String::operator!= | ( | const String & | x | ) | const |
std_msgs::msg::String & std_msgs::msg::String::operator= | ( | const String & | x | ) |
Copy assignment.
x | Reference to the object std_msgs::msg::String that will be copied. |
在文件 String.cpp 第 62 行定义.
引用了 m_data.
|
noexcept |
Move assignment.
x | Reference to the object std_msgs::msg::String that will be copied. |
在文件 String.cpp 第 70 行定义.
bool std_msgs::msg::String::operator== | ( | const String & | x | ) | const |
Comparison operator.
x | std_msgs::msg::String object to compare. |
在文件 String.cpp 第 78 行定义.
引用了 m_data.
void std_msgs::msg::String::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
在文件 String.cpp 第 107 行定义.
被这些函数引用 std_msgs::msg::StringPubSubType::serialize().
void std_msgs::msg::String::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
在文件 String.cpp 第 169 行定义.
被这些函数引用 std_msgs::msg::StringPubSubType::getKey().
|
private |
在文件 ros2/types/String.h 第 207 行定义.
被这些函数引用 operator=(), operator==(), String() , 以及 String().