CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
std_msgs::msg::Float32类 参考

This class represents the structure Float32 defined by the user in the IDL file. 更多...

#include <Float32.h>

+ std_msgs::msg::Float32 的协作图:

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 Float32operator= (const Float32 &x)
 Copy assignment.
 
eProsima_user_DllExport Float32operator= (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.

在文件 Float32.h70 行定义.

构造及析构函数说明

◆ Float32() [1/3]

std_msgs::msg::Float32::Float32 ( )

Default constructor.

在文件 Float32.cpp40 行定义.

引用了 m_data.

◆ ~Float32()

std_msgs::msg::Float32::~Float32 ( )

Default destructor.

在文件 Float32.cpp45 行定义.

◆ Float32() [2/3]

std_msgs::msg::Float32::Float32 ( const Float32 & x)

Copy constructor.

参数
xReference to the object std_msgs::msg::Float32 that will be copied.

在文件 Float32.cpp49 行定义.

引用了 m_data.

◆ Float32() [3/3]

std_msgs::msg::Float32::Float32 ( Float32 && x)
noexcept

Move constructor.

参数
xReference to the object std_msgs::msg::Float32 that will be copied.

在文件 Float32.cpp55 行定义.

成员函数说明

◆ data() [1/3]

float & std_msgs::msg::Float32::data ( )

This function returns a reference to member data

返回
Reference to member data

在文件 Float32.cpp139 行定义.

◆ data() [2/3]

float std_msgs::msg::Float32::data ( ) const

This function returns the value of member data

返回
Value of member data

在文件 Float32.cpp130 行定义.

◆ data() [3/3]

void std_msgs::msg::Float32::data ( float _data)

This function sets a value in member data

参数
_dataNew value for member data

在文件 Float32.cpp120 行定义.

◆ deserialize()

void std_msgs::msg::Float32::deserialize ( eprosima::fastcdr::Cdr & cdr)

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Float32.cpp110 行定义.

被这些函数引用 std_msgs::msg::Float32PubSubType::deserialize().

+ 这是这个函数的调用关系图:

◆ getCdrSerializedSize()

size_t std_msgs::msg::Float32::getCdrSerializedSize ( const std_msgs::msg::Float32 & data,
size_t current_alignment = 0 )
static

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

参数
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
返回
Serialized size.

在文件 Float32.cpp94 行定义.

被这些函数引用 std_msgs::msg::Float32PubSubType::getSerializedSizeProvider().

+ 这是这个函数的调用关系图:

◆ getKeyMaxCdrSerializedSize()

size_t std_msgs::msg::Float32::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.

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 Float32.cpp144 行定义.

引用了 std_msgs_msg_Float32_max_key_cdr_typesize.

被这些函数引用 std_msgs::msg::Float32PubSubType::Float32PubSubType() , 以及 std_msgs::msg::Float32PubSubType::getKey().

+ 这是这个函数的调用关系图:

◆ getMaxCdrSerializedSize()

size_t std_msgs::msg::Float32::getMaxCdrSerializedSize ( size_t current_alignment = 0)
static

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

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 Float32.cpp87 行定义.

引用了 std_msgs_msg_Float32_max_cdr_typesize.

被这些函数引用 std_msgs::msg::Float32PubSubType::Float32PubSubType().

+ 这是这个函数的调用关系图:

◆ isKeyDefined()

bool std_msgs::msg::Float32::isKeyDefined ( )
static

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

在文件 Float32.cpp151 行定义.

被这些函数引用 std_msgs::msg::Float32PubSubType::Float32PubSubType().

+ 这是这个函数的调用关系图:

◆ operator!=()

bool std_msgs::msg::Float32::operator!= ( const Float32 & x) const

Comparison operator.

参数
xstd_msgs::msg::Float32 object to compare.

在文件 Float32.cpp81 行定义.

◆ operator=() [1/2]

std_msgs::msg::Float32 & std_msgs::msg::Float32::operator= ( const Float32 & x)

Copy assignment.

参数
xReference to the object std_msgs::msg::Float32 that will be copied.

在文件 Float32.cpp61 行定义.

引用了 m_data.

◆ operator=() [2/2]

std_msgs::msg::Float32 & std_msgs::msg::Float32::operator= ( Float32 && x)
noexcept

Move assignment.

参数
xReference to the object std_msgs::msg::Float32 that will be copied.

在文件 Float32.cpp68 行定义.

引用了 m_data.

◆ operator==()

bool std_msgs::msg::Float32::operator== ( const Float32 & x) const

Comparison operator.

参数
xstd_msgs::msg::Float32 object to compare.

在文件 Float32.cpp75 行定义.

引用了 m_data.

◆ serialize()

void std_msgs::msg::Float32::serialize ( eprosima::fastcdr::Cdr & cdr) const

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Float32.cpp104 行定义.

被这些函数引用 std_msgs::msg::Float32PubSubType::serialize().

+ 这是这个函数的调用关系图:

◆ serializeKey()

void std_msgs::msg::Float32::serializeKey ( eprosima::fastcdr::Cdr & cdr) const

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

参数
cdrCDR serialization object.

在文件 Float32.cpp156 行定义.

被这些函数引用 std_msgs::msg::Float32PubSubType::getKey().

+ 这是这个函数的调用关系图:

类成员变量说明

◆ m_data

float std_msgs::msg::Float32::m_data
private

在文件 Float32.h199 行定义.

被这些函数引用 Float32(), Float32(), operator=(), operator=() , 以及 operator==().


该类的文档由以下文件生成: