INET Framework for OMNeT++/OMNEST
inet::ospf::RoutingInfo Class Reference

#include <LSA.h>

Inheritance diagram for inet::ospf::RoutingInfo:
inet::ospf::ASExternalLSA inet::ospf::NetworkLSA inet::ospf::RouterLSA inet::ospf::SummaryLSA

Public Member Functions

 RoutingInfo ()
 
 RoutingInfo (const RoutingInfo &routingInfo)
 
virtual ~RoutingInfo ()
 
void addNextHop (NextHop nextHop)
 
void clearNextHops ()
 
unsigned int getNextHopCount () const
 
NextHop getNextHop (unsigned int index) const
 
void setDistance (unsigned long d)
 
unsigned long getDistance () const
 
void setParent (OSPFLSA *p)
 
OSPFLSAgetParent () const
 

Private Attributes

std::vector< NextHopnextHops
 
unsigned long distance
 
OSPFLSAparent
 

Constructor & Destructor Documentation

inet::ospf::RoutingInfo::RoutingInfo ( )
inline
47 : distance(0), parent(nullptr) {}
unsigned long distance
Definition: LSA.h:43
OSPFLSA * parent
Definition: LSA.h:44
inet::ospf::RoutingInfo::RoutingInfo ( const RoutingInfo routingInfo)
inline
48 : nextHops(routingInfo.nextHops), distance(routingInfo.distance), parent(routingInfo.parent) {}
unsigned long distance
Definition: LSA.h:43
std::vector< NextHop > nextHops
Definition: LSA.h:42
OSPFLSA * parent
Definition: LSA.h:44
virtual inet::ospf::RoutingInfo::~RoutingInfo ( )
inlinevirtual
49 {}

Member Function Documentation

void inet::ospf::RoutingInfo::addNextHop ( NextHop  nextHop)
inline

Referenced by inet::ospf::Area::calculateShortestPathTree().

51 { nextHops.push_back(nextHop); }
std::vector< NextHop > nextHops
Definition: LSA.h:42
void inet::ospf::RoutingInfo::clearNextHops ( )
inline
unsigned long inet::ospf::RoutingInfo::getDistance ( ) const
inline

Referenced by inet::ospf::Area::calculateShortestPathTree().

56 { return distance; }
unsigned long distance
Definition: LSA.h:43
NextHop inet::ospf::RoutingInfo::getNextHop ( unsigned int  index) const
inline

Referenced by inet::ospf::Area::calculateNextHops(), and inet::ospf::Area::calculateShortestPathTree().

54 { return nextHops[index]; }
std::vector< NextHop > nextHops
Definition: LSA.h:42
unsigned int inet::ospf::RoutingInfo::getNextHopCount ( ) const
inline

Referenced by inet::ospf::Area::calculateNextHops(), and inet::ospf::Area::calculateShortestPathTree().

53 { return nextHops.size(); }
std::vector< NextHop > nextHops
Definition: LSA.h:42
OSPFLSA* inet::ospf::RoutingInfo::getParent ( ) const
inline
void inet::ospf::RoutingInfo::setDistance ( unsigned long  d)
inline

Referenced by inet::ospf::Area::calculateShortestPathTree().

55 { distance = d; }
unsigned long distance
Definition: LSA.h:43
void inet::ospf::RoutingInfo::setParent ( OSPFLSA p)
inline

Referenced by inet::ospf::Area::calculateShortestPathTree().

57 { parent = p; }
OSPFLSA * parent
Definition: LSA.h:44

Member Data Documentation

unsigned long inet::ospf::RoutingInfo::distance
private
std::vector<NextHop> inet::ospf::RoutingInfo::nextHops
private
OSPFLSA* inet::ospf::RoutingInfo::parent
private

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