Public Member Functions | |
bool | operator() (const RakeData &lhs, const RakeData &rhs) const |
SortedSetCmp () | |
SortedSetCmp (ComparatorBase::Ptr cmp) | |
Private Attributes | |
ComparatorBase::Ptr | cmp_ |
Definition at line 70 of file RakeResults_T.h.
OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::SortedSetCmp | ( | ) | [inline] |
Definition at line 83 of file RakeResults_T.h.
OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::SortedSetCmp | ( | ComparatorBase::Ptr | cmp | ) | [inline, explicit] |
Definition at line 84 of file RakeResults_T.h.
00084 : cmp_(cmp) {}
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 }
ComparatorBase::Ptr OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::cmp_ [private] |
Definition at line 87 of file RakeResults_T.h.
Referenced by OpenDDS::DCPS::RakeResults< SampleSeq >::SortedSetCmp::operator()().