Public Member Functions | |
bool | operator() (const RakeData &lhs, const RakeData &rhs) const |
SortedSetCmp (ComparatorBase::Ptr cmp=0) | |
Private Attributes | |
ComparatorBase::Ptr | cmp_ |
Definition at line 68 of file RakeResults_T.h.
OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::SortedSetCmp | ( | ComparatorBase::Ptr | cmp = 0 |
) | [inline, explicit] |
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 }
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()().