VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::SampleLostInfo结构体 参考final

Cumulative sample delivery statistics for a subscriber or getter. 更多...

#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.

详细描述

Cumulative sample delivery statistics for a subscriber or getter.

Populated by SubscriberImpl::get_lost() and GetterImpl::get_lost(). The total field counts every message expected (both delivered and lost); lost counts those that were never delivered due to queue overflow or network loss. Supports streaming via operator<<.

◆ operator<<

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

Streams a human-readable summary to ostream.

Format: "SampleLostInfo:[total]N[lost]M".

参数
ostreamOutput stream to write to.
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).


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