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

#include <ansaLsa6.h>

Inheritance diagram for AnsaOspf6::RoutingInfo:
AnsaOspf6::AsExternalLsa AnsaOspf6::InterAreaPrefixLsa AnsaOspf6::InterAreaRouterLsa AnsaOspf6::IntraAreaPrefixLsa AnsaOspf6::LinkLsa AnsaOspf6::NetworkLsa AnsaOspf6::RouterLsa

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 (OspfLsa6 *p)
OspfLsa6GetParent (void) const

Private Attributes

std::vector< NextHopnextHops
unsigned long distance
OspfLsa6parent

Detailed Description

Definition at line 31 of file ansaLsa6.h.


Constructor & Destructor Documentation

Definition at line 38 of file ansaLsa6.h.

: distance(0), parent(NULL) {}
AnsaOspf6::RoutingInfo::RoutingInfo ( const RoutingInfo routingInfo) [inline]

Definition at line 39 of file ansaLsa6.h.

: nextHops(routingInfo.nextHops), distance(routingInfo.distance), parent(routingInfo.parent) {}
virtual AnsaOspf6::RoutingInfo::~RoutingInfo ( void  ) [inline, virtual]

Definition at line 41 of file ansaLsa6.h.

{}

Member Function Documentation

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

Definition at line 43 of file ansaLsa6.h.

{ nextHops.push_back(nextHop); }
unsigned long AnsaOspf6::RoutingInfo::GetDistance ( void  ) const [inline]

Definition at line 48 of file ansaLsa6.h.

{ return distance; }
NextHop AnsaOspf6::RoutingInfo::GetNextHop ( unsigned int  index) const [inline]

Definition at line 46 of file ansaLsa6.h.

{ return nextHops[index]; }
unsigned int AnsaOspf6::RoutingInfo::GetNextHopCount ( void  ) const [inline]

Definition at line 45 of file ansaLsa6.h.

{ return nextHops.size(); }
OspfLsa6* AnsaOspf6::RoutingInfo::GetParent ( void  ) const [inline]

Definition at line 50 of file ansaLsa6.h.

Referenced by AnsaOspf6::Area::RemoveParentFromRoutingInfo().

{ return parent; }
void AnsaOspf6::RoutingInfo::SetDistance ( unsigned long  d) [inline]

Definition at line 47 of file ansaLsa6.h.

{ distance = d; }

Definition at line 49 of file ansaLsa6.h.

Referenced by AnsaOspf6::Area::RemoveParentFromRoutingInfo().

{ parent = p; }

Member Data Documentation

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

Definition at line 34 of file ansaLsa6.h.

Referenced by GetDistance(), and SetDistance().

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

Definition at line 33 of file ansaLsa6.h.

Referenced by AddNextHop(), ClearNextHops(), GetNextHop(), and GetNextHopCount().

Definition at line 35 of file ansaLsa6.h.

Referenced by GetParent(), and SetParent().


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