#include <nexthop-list.hpp>
Public Types | |
typedef std::set< NextHop, NextHopComparator >::iterator | iterator |
typedef std::set< NextHop, NextHopComparator >::const_iterator | const_iterator |
Public Member Functions | |
NexthopList () | |
~NexthopList () | |
void | addNextHop (const NextHop &nh) |
Adds a next hop to the list. More... | |
void | removeNextHop (const NextHop &nh) |
Remove a next hop from the Next Hop list. More... | |
size_t | size () const |
void | reset () |
std::set< NextHop, NextHopComparator > & | getNextHops () |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () const |
const_iterator | cend () const |
void | writeLog () |
Definition at line 49 of file nexthop-list.hpp.
typedef std::set<NextHop, NextHopComparator>::const_iterator nlsr::NexthopList::const_iterator |
Definition at line 97 of file nexthop-list.hpp.
typedef std::set<NextHop, NextHopComparator>::iterator nlsr::NexthopList::iterator |
Definition at line 96 of file nexthop-list.hpp.
|
inline |
Definition at line 52 of file nexthop-list.hpp.
|
inline |
Definition at line 56 of file nexthop-list.hpp.
void nlsr::NexthopList::addNextHop | ( | const NextHop & | nh | ) |
Adds a next hop to the list.
nh | The next hop. |
Adds a next hop to this object. If the next hop is new it is added. If the next hop already exists in the list then that next hop's route cost is updated.
Definition at line 84 of file nexthop-list.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 118 of file nexthop-list.hpp.
|
inline |
|
inline |
void nlsr::NexthopList::removeNextHop | ( | const NextHop & | nh | ) |
Remove a next hop from the Next Hop list.
nh | The NextHop we want to remove. |
The next hop gets removed only if both next hop face and route cost are same.
Definition at line 99 of file nexthop-list.cpp.
|
inline |
|
inline |
void nlsr::NexthopList::writeLog | ( | ) |