VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
vlink::SampleLostInfo Struct Referencefinal

Cumulative sample delivery statistics for a subscriber or getter. More...

#include <types.h>

Collaboration diagram for vlink::SampleLostInfo:

Public Attributes

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

Friends

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

Detailed Description

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

Parameters
ostreamOutput stream to write to.
infoInstance to print.
Returns
Reference to ostream.

Member Data Documentation

◆ 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).


The documentation for this struct was generated from the following file: