#include <BuiltInTopicUtils.h>
Public Member Functions | |
bool | operator() (const DDS::BuiltinTopicKey_t &lhs, const DDS::BuiltinTopicKey_t &rhs) const |
Functor for ordering BuiltinKey_t.
Use this like this: std::map<DDS::BuiltinTopicKey_t, int, OpenDDS::DCPS::BuiltinTopicKeyLess> MapType;
Definition at line 65 of file BuiltInTopicUtils.h.
bool OpenDDS::DCPS::BuiltinTopicKeyLess::operator() | ( | const DDS::BuiltinTopicKey_t & | lhs, | |
const DDS::BuiltinTopicKey_t & | rhs | |||
) | const [inline] |
Definition at line 157 of file BuiltInTopicUtils.h.
References DDS::BuiltinTopicKey_t::value.
00159 { 00160 // N.B. This assumes that the MS index is 2 and the LS index is 0. 00161 return (lhs.value[2] < rhs.value[2])? true: 00162 (lhs.value[2] > rhs.value[2])? false: 00163 (lhs.value[1] < rhs.value[1])? true: 00164 (lhs.value[1] > rhs.value[1])? false: 00165 (lhs.value[0] < rhs.value[0])? true: 00166 false; 00167 00168 }