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

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

#include <Time.h>

+ builtin_interfaces::msg::Time 的协作图:

Public 成员函数

eProsima_user_DllExport void deserialize (eprosima::fastcdr::Cdr &cdr)
 This function deserializes an object using CDR serialization.
 
eProsima_user_DllExport uint32_t & nanosec ()
 This function returns a reference to member nanosec
 
eProsima_user_DllExport uint32_t nanosec () const
 This function returns the value of member nanosec
 
eProsima_user_DllExport void nanosec (uint32_t _nanosec)
 This function sets a value in member nanosec
 
eProsima_user_DllExport bool operator!= (const Time &x) const
 Comparison operator.
 
eProsima_user_DllExport Timeoperator= (const Time &x)
 Copy assignment.
 
eProsima_user_DllExport Timeoperator= (Time &&x) noexcept
 Move assignment.
 
eProsima_user_DllExport bool operator== (const Time &x) const
 Comparison operator.
 
eProsima_user_DllExport int32_t & sec ()
 This function returns a reference to member sec
 
eProsima_user_DllExport int32_t sec () const
 This function returns the value of member sec
 
eProsima_user_DllExport void sec (int32_t _sec)
 This function sets a value in member sec
 
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 Time ()
 Default constructor.
 
eProsima_user_DllExport Time (const Time &x)
 Copy constructor.
 
eProsima_user_DllExport Time (Time &&x) noexcept
 Move constructor.
 
eProsima_user_DllExport ~Time ()
 Default destructor.
 

静态 Public 成员函数

static eProsima_user_DllExport size_t getCdrSerializedSize (const builtin_interfaces::msg::Time &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 属性

uint32_t m_nanosec
 
int32_t m_sec
 

详细描述

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

在文件 ros2/types/Time.h71 行定义.

构造及析构函数说明

◆ Time() [1/3]

builtin_interfaces::msg::Time::Time ( )

Default constructor.

在文件 Time.cpp40 行定义.

引用了 m_nanosec , 以及 m_sec.

◆ ~Time()

builtin_interfaces::msg::Time::~Time ( )

Default destructor.

在文件 Time.cpp48 行定义.

◆ Time() [2/3]

builtin_interfaces::msg::Time::Time ( const Time & x)

Copy constructor.

参数
xReference to the object builtin_interfaces::msg::Time that will be copied.

在文件 Time.cpp52 行定义.

引用了 m_nanosec , 以及 m_sec.

◆ Time() [3/3]

builtin_interfaces::msg::Time::Time ( Time && x)
noexcept

Move constructor.

参数
xReference to the object builtin_interfaces::msg::Time that will be copied.

在文件 Time.cpp59 行定义.

成员函数说明

◆ deserialize()

void builtin_interfaces::msg::Time::deserialize ( eprosima::fastcdr::Cdr & cdr)

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Time.cpp122 行定义.

被这些函数引用 builtin_interfaces::msg::TimePubSubType::deserialize().

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

◆ getCdrSerializedSize()

size_t builtin_interfaces::msg::Time::getCdrSerializedSize ( const builtin_interfaces::msg::Time & 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.

在文件 Time.cpp103 行定义.

被这些函数引用 rosgraph::msg::Clock::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize() , 以及 builtin_interfaces::msg::TimePubSubType::getSerializedSizeProvider().

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

◆ getKeyMaxCdrSerializedSize()

size_t builtin_interfaces::msg::Time::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.

在文件 Time.cpp185 行定义.

引用了 builtin_interfaces_msg_Time_max_key_cdr_typesize.

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

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

◆ getMaxCdrSerializedSize()

size_t builtin_interfaces::msg::Time::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.

在文件 Time.cpp96 行定义.

引用了 builtin_interfaces_msg_Time_max_cdr_typesize.

被这些函数引用 builtin_interfaces::msg::TimePubSubType::TimePubSubType().

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

◆ isKeyDefined()

bool builtin_interfaces::msg::Time::isKeyDefined ( )
static

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

在文件 Time.cpp192 行定义.

被这些函数引用 builtin_interfaces::msg::TimePubSubType::TimePubSubType().

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

◆ nanosec() [1/3]

uint32_t & builtin_interfaces::msg::Time::nanosec ( )

This function returns a reference to member nanosec

返回
Reference to member nanosec

在文件 Time.cpp180 行定义.

◆ nanosec() [2/3]

uint32_t builtin_interfaces::msg::Time::nanosec ( ) const

This function returns the value of member nanosec

返回
Value of member nanosec

在文件 Time.cpp171 行定义.

◆ nanosec() [3/3]

void builtin_interfaces::msg::Time::nanosec ( uint32_t _nanosec)

◆ operator!=()

bool builtin_interfaces::msg::Time::operator!= ( const Time & x) const

Comparison operator.

参数
xbuiltin_interfaces::msg::Time object to compare.

在文件 Time.cpp90 行定义.

◆ operator=() [1/2]

builtin_interfaces::msg::Time & builtin_interfaces::msg::Time::operator= ( const Time & x)

Copy assignment.

参数
xReference to the object builtin_interfaces::msg::Time that will be copied.

在文件 Time.cpp66 行定义.

引用了 m_nanosec , 以及 m_sec.

◆ operator=() [2/2]

builtin_interfaces::msg::Time & builtin_interfaces::msg::Time::operator= ( Time && x)
noexcept

Move assignment.

参数
xReference to the object builtin_interfaces::msg::Time that will be copied.

在文件 Time.cpp75 行定义.

引用了 m_sec.

◆ operator==()

bool builtin_interfaces::msg::Time::operator== ( const Time & x) const

Comparison operator.

参数
xbuiltin_interfaces::msg::Time object to compare.

在文件 Time.cpp84 行定义.

引用了 m_nanosec , 以及 m_sec.

◆ sec() [1/3]

int32_t & builtin_interfaces::msg::Time::sec ( )

This function returns a reference to member sec

返回
Reference to member sec

在文件 Time.cpp152 行定义.

◆ sec() [2/3]

int32_t builtin_interfaces::msg::Time::sec ( ) const

This function returns the value of member sec

返回
Value of member sec

在文件 Time.cpp143 行定义.

◆ sec() [3/3]

void builtin_interfaces::msg::Time::sec ( int32_t _sec)

◆ serialize()

void builtin_interfaces::msg::Time::serialize ( eprosima::fastcdr::Cdr & cdr) const

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Time.cpp115 行定义.

被这些函数引用 builtin_interfaces::msg::TimePubSubType::serialize().

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

◆ serializeKey()

void builtin_interfaces::msg::Time::serializeKey ( eprosima::fastcdr::Cdr & cdr) const

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

参数
cdrCDR serialization object.

在文件 Time.cpp197 行定义.

被这些函数引用 builtin_interfaces::msg::TimePubSubType::getKey().

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

类成员变量说明

◆ m_nanosec

uint32_t builtin_interfaces::msg::Time::m_nanosec
private

在文件 ros2/types/Time.h221 行定义.

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

◆ m_sec

int32_t builtin_interfaces::msg::Time::m_sec
private

在文件 ros2/types/Time.h220 行定义.

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


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