RTI Connext Modern C++ API Version 7.2.0
rti::core::status::EventCount< IntegerType > Class Template Reference

<<extension>> <<value-type>> Encapsulates an event count containing a total count and an incremental count since the last time a status was read. More...

#include <Status.hpp>

Inherits std::pair< IntegerType, IntegerType >.

Public Member Functions

IntegerType total () const
 The total count. More...
 
IntegerType change () const
 The incremental count. More...
 

Related Functions

(Note that these are not member functions.)

template<typename IntegerType >
std::ostream & operator<< (std::ostream &out, const EventCount< IntegerType > &event_count)
 <<extension>> Prints an rti::core::status::EventCount to an output stream. More...
 

Detailed Description

template<typename IntegerType>
class rti::core::status::EventCount< IntegerType >

<<extension>> <<value-type>> Encapsulates an event count containing a total count and an incremental count since the last time a status was read.

Template Parameters
IntegerTypeThe integer type used to measure the event counts.

Member Function Documentation

◆ total()

template<typename IntegerType >
IntegerType rti::core::status::EventCount< IntegerType >::total ( ) const
inline

The total count.

◆ change()

template<typename IntegerType >
IntegerType rti::core::status::EventCount< IntegerType >::change ( ) const
inline

The incremental count.

Friends And Related Function Documentation

◆ operator<<()

template<typename IntegerType >
std::ostream & operator<< ( std::ostream &  out,
const EventCount< IntegerType > &  event_count 
)
related

<<extension>> Prints an rti::core::status::EventCount to an output stream.