OpenDDS::DCPS::GroupRakeData::SortedSetCmp Class Reference

Collaboration diagram for OpenDDS::DCPS::GroupRakeData::SortedSetCmp:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool operator() (const RakeData &lhs, const RakeData &rhs) const
 SortedSetCmp ()
 SortedSetCmp (ComparatorBase::Ptr cmp)

Private Attributes

ComparatorBase::Ptr cmp_

Detailed Description

Definition at line 57 of file GroupRakeData.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::GroupRakeData::SortedSetCmp::SortedSetCmp (  )  [inline]

Definition at line 68 of file GroupRakeData.h.

00068 {}

OpenDDS::DCPS::GroupRakeData::SortedSetCmp::SortedSetCmp ( ComparatorBase::Ptr  cmp  )  [inline, explicit]

Definition at line 69 of file GroupRakeData.h.

00069 : cmp_(cmp){}


Member Function Documentation

bool OpenDDS::DCPS::GroupRakeData::SortedSetCmp::operator() ( const RakeData lhs,
const RakeData rhs 
) const [inline]

Definition at line 59 of file GroupRakeData.h.

References OpenDDS::DCPS::RakeData::rde_, and OpenDDS::DCPS::ReceivedDataElement::source_timestamp_.

00059                                                                     {
00060       if (!cmp_.in()) {
00061         // The following assumes that if no comparator is set
00062         // then BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS is used.
00063         return lhs.rde_->source_timestamp_ < rhs.rde_->source_timestamp_;
00064       }
00065 
00066       return false;
00067     }


Member Data Documentation

Definition at line 72 of file GroupRakeData.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1