INET Framework for OMNeT++/OMNEST
STPMACCompare.h File Reference
#include "MACAddress.h"

Go to the source code of this file.

Functions

bool operator< (const MACAddress &a, const MACAddress &b)
bool operator> (const MACAddress &a, const MACAddress &b)
bool operator<= (const MACAddress &a, const MACAddress &b)
bool operator>= (const MACAddress &a, const MACAddress &b)

Function Documentation

bool operator< ( const MACAddress a,
const MACAddress b 
)

Definition at line 13 of file STPMACCompare.h.

                                                         {
        if (a.compareTo(b) == -1) {
                return true;
        }
        return false;
}
bool operator<= ( const MACAddress a,
const MACAddress b 
)

Definition at line 27 of file STPMACCompare.h.

                                                          {
        if (a.compareTo(b) != 1) {
                return true;
        }
        return false;
}
bool operator> ( const MACAddress a,
const MACAddress b 
)

Definition at line 20 of file STPMACCompare.h.

                                                         {
        if (a.compareTo(b) == 1) {
                return true;
        }
        return false;
}
bool operator>= ( const MACAddress a,
const MACAddress b 
)

Definition at line 34 of file STPMACCompare.h.

                                                          {
        if (a.compareTo(b) != -1) {
                return true;
        }
        return false;
}