RTI Connext Modern C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dds::sub::GenerationCount Class Reference

<<value-type>> More...

#include <TGenerationCount.hpp>

Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

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

Create a default GenerationCount object.

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

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

RTI Connext Modern C++ API Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc