RTI Connext Modern C++ API  Version 6.1.0
dds::sub::GenerationCount Class Reference

<<value-type>> More...

#include <TGenerationCount.hpp>

Public Member Functions

 GenerationCount ()
 Create a default GenerationCount object. More...
 
 GenerationCount (int32_t disposed_count, int32_t no_writers_count)
 Create a GenerationCount object with the provided disposed_count and no_writers count. More...
 
int32_t disposed () const
 Get the disposed generation count. More...
 
int32_t no_writers () const
 Get the no_writers generation count. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ GenerationCount() [1/2]

dds::sub::GenerationCount::GenerationCount ( )
inline

Create a default GenerationCount object.

◆ GenerationCount() [2/2]

dds::sub::GenerationCount::GenerationCount ( int32_t  disposed_count,
int32_t  no_writers_count 
)
inline

Create a GenerationCount object with the provided disposed_count and no_writers count.

Member Function Documentation

◆ disposed()

int32_t dds::sub::GenerationCount::disposed ( ) const
inline

Get the disposed generation count.

The disposed generation count of the instance at the time of sample reception.

Indicates how many times the instance_state of the corresponding instance changed from dds::sub::status::InstanceState::not_alive_disposed() to dds::sub::status::InstanceState::alive(). The counter is reset when the instance resource is reclaimed (removed from the DataReader cache).

See also
Interpretation of the SampleInfo disposed_generation_count and no_writers_generation_count Interpretation of the SampleInfo counters and ranks

◆ no_writers()

int32_t dds::sub::GenerationCount::no_writers ( ) const
inline

Get the no_writers generation count.

The no writers generation count of the instance at the time of sample reception.

Indicates how many times the instance_state of the corresponding instance changed from dds::sub::status::InstanceState::not_alive_no_writers() to dds::sub::status::InstanceState::alive(). The counter is reset when the instance resource is reclaimed (removed from the DataReader cache).

See also
Interpretation of the SampleInfo disposed_generation_count and no_writers_generation_count Interpretation of the SampleInfo counters and ranks