nlsr::NexthopList Class Reference

#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 ()
 
const std::set< NextHop, NextHopComparator > & getNextHops () const
 
iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void writeLog ()
 

Detailed Description

Definition at line 49 of file nexthop-list.hpp.

Member Typedef Documentation

Definition at line 96 of file nexthop-list.hpp.

Constructor & Destructor Documentation

nlsr::NexthopList::NexthopList ( )
inline

Definition at line 52 of file nexthop-list.hpp.

nlsr::NexthopList::~NexthopList ( )
inline

Definition at line 56 of file nexthop-list.hpp.

Member Function Documentation

void nlsr::NexthopList::addNextHop ( const NextHop nh)

Adds a next hop to the list.

Parameters
nhThe 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.

Here is the call graph for this function:

Here is the caller graph for this function:

iterator nlsr::NexthopList::begin ( )
inline

Definition at line 100 of file nexthop-list.hpp.

Here is the caller graph for this function:

const_iterator nlsr::NexthopList::cbegin ( ) const
inline

Definition at line 112 of file nexthop-list.hpp.

Here is the caller graph for this function:

const_iterator nlsr::NexthopList::cend ( ) const
inline

Definition at line 118 of file nexthop-list.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

iterator nlsr::NexthopList::end ( )
inline

Definition at line 106 of file nexthop-list.hpp.

Here is the caller graph for this function:

const std::set<NextHop, NextHopComparator>& nlsr::NexthopList::getNextHops ( ) const
inline

Definition at line 91 of file nexthop-list.hpp.

Here is the caller graph for this function:

void nlsr::NexthopList::removeNextHop ( const NextHop nh)

Remove a next hop from the Next Hop list.

Parameters
nhThe 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.

Here is the call graph for this function:

Here is the caller graph for this function:

void nlsr::NexthopList::reset ( )
inline

Definition at line 85 of file nexthop-list.hpp.

Here is the caller graph for this function:

size_t nlsr::NexthopList::size ( ) const
inline

Definition at line 79 of file nexthop-list.hpp.

Here is the caller graph for this function:

void nlsr::NexthopList::writeLog ( )

Definition at line 110 of file nexthop-list.cpp.

Here is the caller graph for this function: