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

<<value-type>> More...

#include <TRank.hpp>

Public Member Functions

 Rank ()
 Create a default Rank object.
 
 Rank (int32_t sample_rank, int32_t generation_rank, int32_t absolute_generation_rank)
 Create a Rank object with the provided sample_rank, generation_rank, and absolute_generation_rank.
 
int32_t sample () const
 Get the sample rank of the sample.
 
int32_t generation () const
 Get the generation rank of the sample.
 
int32_t absolute_generation () const
 Get the absolute generation rank of the sample.
 

Detailed Description

Constructor & Destructor Documentation

dds::sub::Rank::Rank ( )
inline

Create a default Rank object.

dds::sub::Rank::Rank ( int32_t  sample_rank,
int32_t  generation_rank,
int32_t  absolute_generation_rank 
)
inline

Create a Rank object with the provided sample_rank, generation_rank, and absolute_generation_rank.

Member Function Documentation

int32_t dds::sub::Rank::sample ( ) const
inline

Get the sample rank of the sample.

The sample rank of the sample.

Indicates the number of samples related to the same instance that follow in the collection returned by read or take.

See Also
Interpretation of the SampleInfo sample_rank, generation_rank and absolute_generation_rank Interpretation of the SampleInfo counters and ranks
int32_t dds::sub::Rank::generation ( ) const
inline

Get the generation rank of the sample.

The generation rank of the sample.

Indicates the generation difference (number of times the instance was disposed and become alive again) between the time the sample was received, and the time the most recent sample in the collection related to the same instance was received.

See Also
Interpretation of the SampleInfo sample_rank, generation_rank and absolute_generation_rank Interpretation of the SampleInfo counters and ranks
int32_t dds::sub::Rank::absolute_generation ( ) const
inline

Get the absolute generation rank of the sample.

The absolute generation rank of the sample.

Indicates the generation difference (number of times the instance was disposed and become alive again) between the time the sample was received, and the time the most recent sample (which may not be in the returned collection) related to the same instance was received.

See Also
Interpretation of the SampleInfo sample_rank, generation_rank and absolute_generation_rank Interpretation of the SampleInfo counters and ranks

RTI Connext Modern C++ API Version 5.2.0 Copyright © Sun Jun 21 2015 Real-Time Innovations, Inc