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)
OSPFLSAGetParent (void) const

Private Attributes

std::vector< NextHopnextHops
unsigned long distance
OSPFLSAparent

Constructor & Destructor Documentation

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

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

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

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

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

00029 {}


Member Function Documentation

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

00031 { nextHops.push_back (nextHop); }

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

00032 { nextHops.clear (); }

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

00036 { return distance; }

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

00034 { return nextHops[index]; }

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

00033 { return nextHops.size (); }

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

00038 { return parent; }

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

00035 { distance = d; }

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

00037 { parent = p; }


Member Data Documentation

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

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

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


The documentation for this class was generated from the following file:
Generated on Wed Apr 4 13:20:25 2007 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.7