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

Writer-side event raised when a matching subscriber appears or disappears. 更多...

#include <status_detail.h>

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

Public 成员函数

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

Public 属性

int32_t total_count {0}
 Cumulative subscribers ever matched. 更多...
 
int32_t total_count_change {0}
 Delta in total_count since the last notification. 更多...
 
int32_t current_count {0}
 Subscribers currently matched. 更多...
 
int32_t current_count_change {0}
 Delta in current_count since the last notification. 更多...
 
InstanceHandle last_subscription_handle {nullptr}
 Opaque handle of the subscriber that triggered this event. 更多...
 

友元

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

额外继承的成员函数

详细描述

Writer-side event raised when a matching subscriber appears or disappears.

Provides cumulative and current counts of matched subscribers together with the most recent subscription handle. Negative current_count_change indicates a peer was removed.

成员函数说明

◆ get_string()

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

Returns the literal "PublicationMatched".

返回
Event name string.

实现了 vlink::Status::Base.

◆ get_type()

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

Returns kPublicationMatched.

返回
Status type discriminator.

实现了 vlink::Status::Base.

友元及相关函数文档

◆ operator<<

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

Streams the counter fields to ostream.

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

类成员变量说明

◆ current_count

int32_t vlink::Status::PublicationMatched::current_count {0}

Subscribers currently matched.

◆ current_count_change

int32_t vlink::Status::PublicationMatched::current_count_change {0}

Delta in current_count since the last notification.

◆ last_subscription_handle

InstanceHandle vlink::Status::PublicationMatched::last_subscription_handle {nullptr}

Opaque handle of the subscriber that triggered this event.

◆ total_count

int32_t vlink::Status::PublicationMatched::total_count {0}

Cumulative subscribers ever matched.

◆ total_count_change

int32_t vlink::Status::PublicationMatched::total_count_change {0}

Delta in total_count since the last notification.


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