#include <nexthop-list.hpp>
Public Types | |
| typedef std::set< NextHop, NextHopComparator >::const_iterator | const_iterator |
| typedef std::set< NextHop, NextHopComparator >::iterator | iterator |
| typedef std::set< NextHop, NextHopComparator >::reverse_iterator | reverse_iterator |
Public Member Functions | |
| NexthopList ()=default | |
| void | addNextHop (const NextHop &nh) |
| Adds a next hop to the list. More... | |
| iterator | begin () |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| void | clear () |
| iterator | end () |
| const std::set< NextHop, NextHopComparator > & | getNextHops () const |
| reverse_iterator | rbegin () const |
| void | removeNextHop (const NextHop &nh) |
| Remove a next hop from the Next Hop list. More... | |
| reverse_iterator | rend () const |
| size_t | size () const |
Definition at line 47 of file nexthop-list.hpp.
| typedef std::set<NextHop, NextHopComparator>::const_iterator nlsr::NexthopList::const_iterator |
Definition at line 89 of file nexthop-list.hpp.
| typedef std::set<NextHop, NextHopComparator>::iterator nlsr::NexthopList::iterator |
Definition at line 88 of file nexthop-list.hpp.
| typedef std::set<NextHop, NextHopComparator>::reverse_iterator nlsr::NexthopList::reverse_iterator |
Definition at line 90 of file nexthop-list.hpp.
|
default |
| 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 79 of file nexthop-list.cpp.
|
inline |
Definition at line 93 of file nexthop-list.hpp.
|
inline |
Definition at line 105 of file nexthop-list.hpp.
|
inline |
Definition at line 111 of file nexthop-list.hpp.
|
inline |
Definition at line 77 of file nexthop-list.hpp.
|
inline |
Definition at line 99 of file nexthop-list.hpp.
|
inline |
Definition at line 83 of file nexthop-list.hpp.
|
inline |
Definition at line 117 of file nexthop-list.hpp.
| 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 93 of file nexthop-list.cpp.
|
inline |
Definition at line 123 of file nexthop-list.hpp.
|
inline |
Definition at line 71 of file nexthop-list.hpp.