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

Aggregate of cumulative delivered / lost sample counts. 更多...

#include <types.h>

vlink::SampleLostInfo 的协作图:

Public 属性

uint64_t total {0}
 Total number of samples expected (delivered + lost). 更多...
 
uint64_t lost {0}
 Number of samples that were dropped or missed. 更多...
 

友元

VLINK_EXPORT friend std::ostream & operator<< (std::ostream &ostream, const SampleLostInfo &info) noexcept
 Streams a human-readable summary to ostream. 更多...
 

详细描述

Aggregate of cumulative delivered / lost sample counts.

Returned by SubscriberImpl::get_lost() and GetterImpl::get_lost(). total counts every message that was expected (delivered or lost); lost counts the subset that did not arrive. Stream-friendly through operator<<.

友元及相关函数文档

◆ operator<<

VLINK_EXPORT friend std::ostream& operator<< ( std::ostream &  ostream,
const SampleLostInfo info 
)
friend

Streams a human-readable summary to ostream.

Output format: "SampleLostInfo:[total]N[lost]M".

参数
ostreamDestination stream.
infoInstance to print.
返回
Reference to ostream.

类成员变量说明

◆ lost

uint64_t vlink::SampleLostInfo::lost {0}

Number of samples that were dropped or missed.

◆ total

uint64_t vlink::SampleLostInfo::total {0}

Total number of samples expected (delivered + lost).


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