VLANs(802.1Q)forOMNet++  0.5Beta
macllidCmp Struct Reference

Comparison operator for using the mac_llid struct in an std::map container. More...

#include <MACVlanRelayUnitBase.h>

List of all members.

Public Member Functions

bool operator() (const mac_llid s1, const mac_llid s2) const

Detailed Description

Comparison operator for using the mac_llid struct in an std::map container.

Again I don't know if map is the proper solution (it is probably faster on lookups...)


Member Function Documentation

bool macllidCmp::operator() ( const mac_llid  s1,
const mac_llid  s2 
) const [inline]
                                                                {
          int res=s1.mac.compareTo(s2.mac);
          if (res==0) return s1.llid < s2.llid;
          return res<0;
  }

The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Friends Defines