Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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< NextHop > nextHops
unsigned long distance
OSPFLSA * parent

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 Thu Oct 19 18:22:33 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.0