#include <BuiltInTopicUtils.h>
Public Member Functions | |
bool | operator() (const DDS::BuiltinTopicKey_t &lhs, const DDS::BuiltinTopicKey_t &rhs) const |
Use this like this: std::map<DDS::BuiltinTopicKey_t, int, OpenDDS::DCPS::BuiltinTopicKeyLess> MapType;
Definition at line 43 of file BuiltInTopicUtils.h.
bool OpenDDS::DCPS::BuiltinTopicKeyLess::operator() | ( | const DDS::BuiltinTopicKey_t & | lhs, | |
const DDS::BuiltinTopicKey_t & | rhs | |||
) | const [inline] |
Definition at line 144 of file BuiltInTopicUtils.h.
References DDS::BuiltinTopicKey_t::value.
00146 { 00147 // N.B. This assumes that the MS index is 2 and the LS index is 0. 00148 return (lhs.value[2] < rhs.value[2])? true: 00149 (lhs.value[2] > rhs.value[2])? false: 00150 (lhs.value[1] < rhs.value[1])? true: 00151 (lhs.value[1] > rhs.value[1])? false: 00152 (lhs.value[0] < rhs.value[0])? true: 00153 false; 00154 00155 }