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]

00042 : distance(0), parent(NULL) {}

OSPF::RoutingInfo::RoutingInfo ( const RoutingInfo routingInfo  )  [inline]

00044 : nextHops(routingInfo.nextHops), distance(routingInfo.distance), parent(routingInfo.parent) {}

virtual OSPF::RoutingInfo::~RoutingInfo ( void   )  [inline, virtual]

00046 {}


Member Function Documentation

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

00048 { nextHops.push_back(nextHop); }

void OSPF::RoutingInfo::ClearNextHops ( void   )  [inline]

unsigned int OSPF::RoutingInfo::GetNextHopCount ( void   )  const [inline]

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

00050 { return nextHops.size(); }

NextHop OSPF::RoutingInfo::GetNextHop ( unsigned int  index  )  const [inline]

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

00051 { return nextHops[index]; }

void OSPF::RoutingInfo::SetDistance ( unsigned long  d  )  [inline]

00052 { distance = d; }

unsigned long OSPF::RoutingInfo::GetDistance ( void   )  const [inline]

00053 { return distance; }

void OSPF::RoutingInfo::SetParent ( OSPFLSA *  p  )  [inline]

00054 { parent = p; }

OSPFLSA* OSPF::RoutingInfo::GetParent ( void   )  const [inline]


Member Data Documentation

std::vector<NextHop> OSPF::RoutingInfo::nextHops [private]

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:

Generated on Fri Mar 20 18:51:23 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5