OpenDDS::DCPS::BuiltinTopicKeyLess Class Reference

#include <BuiltInTopicUtils.h>

List of all members.

Public Member Functions

bool operator() (const DDS::BuiltinTopicKey_t &lhs, const DDS::BuiltinTopicKey_t &rhs) const

Detailed Description

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.


Member Function Documentation

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 }


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