OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp Class Reference

Collaboration diagram for OpenDDS::DCPS::RakeResults< SampleSeq >::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

template<class SampleSeq>
class OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp

Definition at line 68 of file RakeResults_T.h.


Constructor & Destructor Documentation

template<class SampleSeq>
OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::SortedSetCmp ( ComparatorBase::Ptr  cmp = 0  )  [inline, explicit]

Definition at line 81 of file RakeResults_T.h.

00081 : cmp_(cmp) {}


Member Function Documentation

template<class SampleSeq>
bool OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::operator() ( const RakeData lhs,
const RakeData rhs 
) const [inline]

Definition at line 70 of file RakeResults_T.h.

References OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::cmp_, OpenDDS::DCPS::RcHandle< T >::in(), OpenDDS::DCPS::RakeData::rde_, OpenDDS::DCPS::ReceivedDataElement::registered_data_, and OpenDDS::DCPS::ReceivedDataElement::source_timestamp_.

00070                                                                     {
00071       if (!cmp_.in()) {
00072         // The following assumes that if no comparator is set
00073         // then PRESENTATION ordered access applies (TOPIC).
00074         return lhs.rde_->source_timestamp_ < rhs.rde_->source_timestamp_;
00075       }
00076 
00077       return cmp_->compare(lhs.rde_->registered_data_,
00078                            rhs.rde_->registered_data_);
00079     }


Member Data Documentation

template<class SampleSeq>
ComparatorBase::Ptr OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::cmp_ [private]

Definition at line 84 of file RakeResults_T.h.

Referenced by OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::operator()().


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