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 (ComparatorBase::Ptr cmp=0)

Private Attributes

ComparatorBase::Ptr cmp_

Detailed Description

Definition at line 55 of file GroupRakeData.h.


Constructor & Destructor Documentation

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

Definition at line 67 of file GroupRakeData.h.

00067 : cmp_(cmp){}


Member Function Documentation

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

Definition at line 57 of file GroupRakeData.h.

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

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


Member Data Documentation

ComparatorBase::Ptr OpenDDS::DCPS::GroupRakeData::SortedSetCmp::cmp_ [private]

Definition at line 70 of file GroupRakeData.h.


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:06:18 2016 for OpenDDS by  doxygen 1.4.7