#include <LSA.h>
Inheritance diagram for OSPF::RoutingInfo:
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 |
|
|
|
00027 : nextHops (routingInfo.nextHops), distance (routingInfo.distance), parent (routingInfo.parent) {}
|
|
00029 {}
|
|
00031 { nextHops.push_back (nextHop); }
|
|
00032 { nextHops.clear (); }
|
|
00036 { return distance; }
|
|
00034 { return nextHops[index]; }
|
|
00033 { return nextHops.size (); }
|
|
00038 { return parent; }
|
|
00035 { distance = d; }
|
|
00037 { parent = p; }
|
|
|
|
|
|
|