#include <LSA.h>
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 |
Definition at line 34 of file LSA.h.
OSPF::RoutingInfo::RoutingInfo | ( | void | ) | [inline] |
OSPF::RoutingInfo::RoutingInfo | ( | const RoutingInfo & | routingInfo | ) | [inline] |
virtual OSPF::RoutingInfo::~RoutingInfo | ( | void | ) | [inline, virtual] |
void OSPF::RoutingInfo::AddNextHop | ( | NextHop | nextHop | ) | [inline] |
void OSPF::RoutingInfo::ClearNextHops | ( | void | ) | [inline] |
Definition at line 49 of file LSA.h.
Referenced by OSPF::SummaryLSA::Update(), OSPF::RouterLSA::Update(), OSPF::NetworkLSA::Update(), and OSPF::ASExternalLSA::Update().
{ nextHops.clear(); }
unsigned long OSPF::RoutingInfo::GetDistance | ( | void | ) | const [inline] |
NextHop OSPF::RoutingInfo::GetNextHop | ( | unsigned int | index | ) | const [inline] |
Definition at line 51 of file LSA.h.
Referenced by OSPF::Area::CalculateNextHops().
{ return nextHops[index]; }
unsigned int OSPF::RoutingInfo::GetNextHopCount | ( | void | ) | const [inline] |
Definition at line 50 of file LSA.h.
Referenced by OSPF::Area::CalculateNextHops().
{ return nextHops.size(); }
OSPFLSA* OSPF::RoutingInfo::GetParent | ( | void | ) | const [inline] |
Definition at line 55 of file LSA.h.
Referenced by OSPF::Area::CalculateNextHops(), and OSPF::Router::IsDestinationUnreachable().
{ return parent; }
void OSPF::RoutingInfo::SetDistance | ( | unsigned long | d | ) | [inline] |
void OSPF::RoutingInfo::SetParent | ( | OSPFLSA * | p | ) | [inline] |
unsigned long OSPF::RoutingInfo::distance [private] |
Definition at line 38 of file LSA.h.
Referenced by GetDistance(), and SetDistance().
std::vector<NextHop> OSPF::RoutingInfo::nextHops [private] |
Definition at line 37 of file LSA.h.
Referenced by AddNextHop(), ClearNextHops(), GetNextHop(), and GetNextHopCount().
OSPFLSA* OSPF::RoutingInfo::parent [private] |
Definition at line 39 of file LSA.h.
Referenced by GetParent(), and SetParent().