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 43 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 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 }


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:06:10 2016 for OpenDDS by  doxygen 1.4.7