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

Private Attributes

ComparatorBase::Ptr cmp_

Detailed Description

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

Definition at line 70 of file RakeResults_T.h.


Constructor & Destructor Documentation

template<class SampleSeq>
OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::SortedSetCmp (  )  [inline]

Definition at line 83 of file RakeResults_T.h.

00083 {}

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

Definition at line 84 of file RakeResults_T.h.

00084 : 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 72 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_.

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

Here is the call graph for this function:


Member Data Documentation

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

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