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

#include <Lsa.h>

Inheritance diagram for inet::ospfv2::RoutingInfo:
inet::ospfv2::AsExternalLsa inet::ospfv2::NetworkLsa inet::ospfv2::RouterLsa inet::ospfv2::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 (Ospfv2Lsa *p)
 
Ospfv2LsagetParent () const
 

Private Attributes

std::vector< NextHopnextHops
 
unsigned long distance
 
Ospfv2Lsaparent
 

Constructor & Destructor Documentation

◆ RoutingInfo() [1/2]

inet::ospfv2::RoutingInfo::RoutingInfo ( )
inline
36 : distance(0), parent(nullptr) {}

◆ RoutingInfo() [2/2]

inet::ospfv2::RoutingInfo::RoutingInfo ( const RoutingInfo routingInfo)
inline
37 : nextHops(routingInfo.nextHops), distance(routingInfo.distance), parent(routingInfo.parent) {}

◆ ~RoutingInfo()

virtual inet::ospfv2::RoutingInfo::~RoutingInfo ( )
inlinevirtual
38 {}

Member Function Documentation

◆ addNextHop()

void inet::ospfv2::RoutingInfo::addNextHop ( NextHop  nextHop)
inline
40 { nextHops.push_back(nextHop); }

Referenced by inet::ospfv2::Ospfv2Area::calculateShortestPathTree().

◆ clearNextHops()

◆ getDistance()

unsigned long inet::ospfv2::RoutingInfo::getDistance ( ) const
inline

◆ getNextHop()

NextHop inet::ospfv2::RoutingInfo::getNextHop ( unsigned int  index) const
inline

◆ getNextHopCount()

unsigned int inet::ospfv2::RoutingInfo::getNextHopCount ( ) const
inline

◆ getParent()

Ospfv2Lsa* inet::ospfv2::RoutingInfo::getParent ( ) const
inline

◆ setDistance()

void inet::ospfv2::RoutingInfo::setDistance ( unsigned long  d)
inline

◆ setParent()

void inet::ospfv2::RoutingInfo::setParent ( Ospfv2Lsa p)
inline

Member Data Documentation

◆ distance

unsigned long inet::ospfv2::RoutingInfo::distance
private

◆ nextHops

std::vector<NextHop> inet::ospfv2::RoutingInfo::nextHops
private

◆ parent

Ospfv2Lsa* inet::ospfv2::RoutingInfo::parent
private

The documentation for this class was generated from the following file:
inet::ospfv2::RoutingInfo::parent
Ospfv2Lsa * parent
Definition: Lsa.h:33
inet::ospfv2::RoutingInfo::distance
unsigned long distance
Definition: Lsa.h:32
inet::ospfv2::RoutingInfo::nextHops
std::vector< NextHop > nextHops
Definition: Lsa.h:31