VLink  2.0.0
A high-performance communication middleware
vlink::Status::LivelinessChanged结构体 参考final

Reader-side event raised when the liveliness of a matched publisher changes. 更多...

#include <status_detail.h>

类 vlink::Status::LivelinessChanged 继承关系图:
vlink::Status::LivelinessChanged 的协作图:

Public 成员函数

Type get_type () const override
 Returns kLivelinessChanged. 更多...
 
std::string get_string () const override
 Returns the literal "LivelinessChanged". 更多...
 

Public 属性

int32_t alive_count {0}
 Matched publishers currently considered alive. 更多...
 
int32_t not_alive_count {0}
 Matched publishers currently considered not alive. 更多...
 
int32_t alive_count_change {0}
 Delta in alive_count since the last notification. 更多...
 
int32_t not_alive_count_change {0}
 Delta in not_alive_count since the last notification. 更多...
 
InstanceHandle last_publication_handle {nullptr}
 Opaque handle of the publisher whose state changed. 更多...
 

友元

VLINK_EXPORT friend std::ostream & operator<< (std::ostream &ostream, const LivelinessChanged &status) noexcept
 Streams the counter fields to ostream. 更多...
 

额外继承的成员函数

详细描述

Reader-side event raised when the liveliness of a matched publisher changes.

The alive_count and not_alive_count fields hold the current totals; the matching *_change fields hold the delta since the last notification.

成员函数说明

◆ get_string()

std::string vlink::Status::LivelinessChanged::get_string ( ) const
overridevirtual

Returns the literal "LivelinessChanged".

返回
Event name string.

实现了 vlink::Status::Base.

◆ get_type()

Type vlink::Status::LivelinessChanged::get_type ( ) const
overridevirtual

Returns kLivelinessChanged.

返回
Status type discriminator.

实现了 vlink::Status::Base.

友元及相关函数文档

◆ operator<<

VLINK_EXPORT friend std::ostream& operator<< ( std::ostream &  ostream,
const LivelinessChanged status 
)
friend

Streams the counter fields to ostream.

参数
ostreamOutput stream.
statusEvent to print.
返回
Reference to ostream.

类成员变量说明

◆ alive_count

int32_t vlink::Status::LivelinessChanged::alive_count {0}

Matched publishers currently considered alive.

◆ alive_count_change

int32_t vlink::Status::LivelinessChanged::alive_count_change {0}

Delta in alive_count since the last notification.

◆ last_publication_handle

InstanceHandle vlink::Status::LivelinessChanged::last_publication_handle {nullptr}

Opaque handle of the publisher whose state changed.

◆ not_alive_count

int32_t vlink::Status::LivelinessChanged::not_alive_count {0}

Matched publishers currently considered not alive.

◆ not_alive_count_change

int32_t vlink::Status::LivelinessChanged::not_alive_count_change {0}

Delta in not_alive_count since the last notification.


该结构体的文档由以下文件生成: