INET Framework for OMNeT++/OMNEST
OSPF::RoutingInfo Class Reference

#include <LSA.h>

Inheritance diagram for OSPF::RoutingInfo:
OSPF::ASExternalLSA OSPF::NetworkLSA OSPF::RouterLSA OSPF::SummaryLSA

List of all members.

Public Member Functions

 RoutingInfo (void)
 RoutingInfo (const RoutingInfo &routingInfo)
virtual ~RoutingInfo (void)
void AddNextHop (NextHop nextHop)
void ClearNextHops (void)
unsigned int GetNextHopCount (void) const
NextHop GetNextHop (unsigned int index) const
void SetDistance (unsigned long d)
unsigned long GetDistance (void) const
void SetParent (OSPFLSA *p)
OSPFLSA * GetParent (void) const

Private Attributes

std::vector< NextHopnextHops
unsigned long distance
OSPFLSA * parent

Constructor & Destructor Documentation

OSPF::RoutingInfo::RoutingInfo ( void  ) [inline]
: distance(0), parent(NULL) {}
OSPF::RoutingInfo::RoutingInfo ( const RoutingInfo routingInfo) [inline]
: nextHops(routingInfo.nextHops), distance(routingInfo.distance), parent(routingInfo.parent) {}
virtual OSPF::RoutingInfo::~RoutingInfo ( void  ) [inline, virtual]
{}

Member Function Documentation

void OSPF::RoutingInfo::AddNextHop ( NextHop  nextHop) [inline]

Referenced by OSPF::Area::CalculateShortestPathTree().

{ nextHops.push_back(nextHop); }
unsigned long OSPF::RoutingInfo::GetDistance ( void  ) const [inline]
NextHop OSPF::RoutingInfo::GetNextHop ( unsigned int  index) const [inline]
unsigned int OSPF::RoutingInfo::GetNextHopCount ( void  ) const [inline]
OSPFLSA* OSPF::RoutingInfo::GetParent ( void  ) const [inline]
void OSPF::RoutingInfo::SetDistance ( unsigned long  d) [inline]
void OSPF::RoutingInfo::SetParent ( OSPFLSA *  p) [inline]

Member Data Documentation

unsigned long OSPF::RoutingInfo::distance [private]

Referenced by GetDistance(), and SetDistance().

OSPFLSA* OSPF::RoutingInfo::parent [private]

Referenced by GetParent(), and SetParent().


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