INET Framework for OMNeT++/OMNEST
ISISPath Struct Reference

#include <ISIStypes.h>

List of all members.

Public Member Functions

bool operator< (const ISISPath &path2) const

Public Attributes

unsigned char * to
uint32_t metric
ISISNeighbours_t from

Detailed Description

Definition at line 234 of file ISIStypes.h.


Member Function Documentation

bool ISISPath::operator< ( const ISISPath path2) const [inline]

Definition at line 240 of file ISIStypes.h.

                                                     {

             for (unsigned int i = 0; i < ISIS_SYSTEM_ID + 2; i++){
                 if(this->metric < path2.metric){
                     return true; //first is smaller, so return true
                 }else{
                     return false; //first is bigger, so return false
                 }
                 //if it's equal then continue to next one
             }

             //if they're equal, return false
             return false;
         }

Member Data Documentation

uint32_t ISISPath::metric

Definition at line 237 of file ISIStypes.h.

Referenced by ISIS::bestToPath(), ISIS::fullSPF(), ISIS::moveToTent(), and operator<().

unsigned char* ISISPath::to

Definition at line 236 of file ISIStypes.h.

Referenced by ISIS::fullSPF(), and ISIS::moveToTent().


The documentation for this struct was generated from the following file: