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

#include <Ospfv3Lsa.h>

Inheritance diagram for inet::ospfv3::RoutingInfo:
inet::ospfv3::ASExternalLSA inet::ospfv3::InterAreaPrefixLSA inet::ospfv3::InterAreaRouterLSA inet::ospfv3::IntraAreaPrefixLSA inet::ospfv3::LinkLSA inet::ospfv3::NetworkLSA inet::ospfv3::NssaLSA inet::ospfv3::RouterLSA

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 (Ospfv3Lsa *p)
 
Ospfv3LsagetParent () const
 

Private Attributes

std::vector< NextHopnextHops
 
unsigned long distance
 
Ospfv3Lsaparent
 

Constructor & Destructor Documentation

◆ RoutingInfo() [1/2]

inet::ospfv3::RoutingInfo::RoutingInfo ( )
inline
45 : distance(0), parent(nullptr) {}

◆ RoutingInfo() [2/2]

inet::ospfv3::RoutingInfo::RoutingInfo ( const RoutingInfo routingInfo)
inline
46 : nextHops(routingInfo.nextHops), distance(routingInfo.distance), parent(routingInfo.parent) {}

◆ ~RoutingInfo()

virtual inet::ospfv3::RoutingInfo::~RoutingInfo ( )
inlinevirtual
47 {}

Member Function Documentation

◆ addNextHop()

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

Referenced by inet::ospfv3::Ospfv3Area::calculateShortestPathTree().

◆ clearNextHops()

void inet::ospfv3::RoutingInfo::clearNextHops ( )
inline

◆ getDistance()

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

◆ getNextHop()

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

◆ getNextHopCount()

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

◆ getParent()

Ospfv3Lsa* inet::ospfv3::RoutingInfo::getParent ( ) const
inline
56 { return parent; }

Referenced by inet::ospfv3::Ospfv3Area::calculateNextHops().

◆ setDistance()

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

◆ setParent()

void inet::ospfv3::RoutingInfo::setParent ( Ospfv3Lsa p)
inline

Member Data Documentation

◆ distance

unsigned long inet::ospfv3::RoutingInfo::distance
private

◆ nextHops

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

◆ parent

Ospfv3Lsa* inet::ospfv3::RoutingInfo::parent
private

The documentation for this class was generated from the following file:
inet::ospfv3::RoutingInfo::distance
unsigned long distance
Definition: Ospfv3Lsa.h:41
inet::ospfv3::RoutingInfo::parent
Ospfv3Lsa * parent
Definition: Ospfv3Lsa.h:42
inet::ospfv3::RoutingInfo::nextHops
std::vector< NextHop > nextHops
Definition: Ospfv3Lsa.h:40