#include <nexthop-list.hpp>
Inheritance diagram for nlsr::NexthopListT< T >:Public Types | |
| typedef std::set< NextHop, T >::const_iterator | const_iterator |
| typedef std::set< NextHop, T >::iterator | iterator |
| typedef std::set< NextHop, T >::reverse_iterator | reverse_iterator |
| typedef T | value_type |
Public Member Functions | |
| NexthopListT ()=default | |
| void | addNextHop (const NextHop &nh) |
| Adds a next hop to the list. More... | |
| iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| void | clear () |
| iterator | end () const |
| const std::set< NextHop, T > & | 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 44 of file nexthop-list.hpp.
| typedef std::set<NextHop, T>::const_iterator nlsr::NexthopListT< T >::const_iterator |
Definition at line 106 of file nexthop-list.hpp.
| typedef std::set<NextHop, T>::iterator nlsr::NexthopListT< T >::iterator |
Definition at line 105 of file nexthop-list.hpp.
| typedef std::set<NextHop, T>::reverse_iterator nlsr::NexthopListT< T >::reverse_iterator |
Definition at line 107 of file nexthop-list.hpp.
| typedef T nlsr::NexthopListT< T >::value_type |
Definition at line 104 of file nexthop-list.hpp.
|
default |
|
inline |
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 but has a higher cost then its route cost is updated.
Definition at line 57 of file nexthop-list.hpp.
|
inline |
Definition at line 110 of file nexthop-list.hpp.
|
inline |
Definition at line 122 of file nexthop-list.hpp.
|
inline |
Definition at line 128 of file nexthop-list.hpp.
|
inline |
Definition at line 93 of file nexthop-list.hpp.
|
inline |
Definition at line 116 of file nexthop-list.hpp.
|
inline |
Definition at line 99 of file nexthop-list.hpp.
|
inline |
Definition at line 134 of file nexthop-list.hpp.
|
inline |
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 78 of file nexthop-list.hpp.
|
inline |
Definition at line 140 of file nexthop-list.hpp.
|
inline |
Definition at line 87 of file nexthop-list.hpp.