xorp

InternalRouteEntry< A > Class Template Reference

Internal routing entry, potentially one per area. More...

#include <routing_table.hh>

List of all members.

Public Member Functions

 InternalRouteEntry (const InternalRouteEntry &rhs)
InternalRouteEntryoperator= (const InternalRouteEntry &rhs)
void copy (const InternalRouteEntry &rhs)
bool add_entry (OspfTypes::AreaID area, const RouteEntry< A > &rt)
 Add entry indexed by area.
bool replace_entry (OspfTypes::AreaID area, const RouteEntry< A > &rt)
bool delete_entry (OspfTypes::AreaID, bool &winner_changed)
 Delete entry.
RouteEntry< A > & get_entry () const
 Get the winning entry.
bool get_entry (OspfTypes::AreaID area, RouteEntry< A > &rt) const
 Look from an entry for this specific area.
bool empty () const
 Are there any entries?
string str ()

Private Member Functions

bool reset_winner ()

Private Attributes

RouteEntry< A > * _winner
map< OspfTypes::AreaID,
RouteEntry< A > > 
_entries

Detailed Description

template<typename A>
class InternalRouteEntry< A >

Internal routing entry, potentially one per area.


Member Function Documentation

template<typename A >
bool InternalRouteEntry< A >::add_entry ( OspfTypes::AreaID  area,
const RouteEntry< A > &  rt 
)

Add entry indexed by area.

Returns:
true on sucess.
template<typename A >
bool InternalRouteEntry< A >::delete_entry ( OspfTypes::AreaID  area,
bool &  winner_changed 
)

Delete entry.

Perfectly safe to attempt to delete an entry for an area even if no entry exists.

Parameters:
areaarea ID.
winner_changedout parameter set to true if this entry was the winner.
Returns:
true if an entry was deleted.
template<typename A >
bool InternalRouteEntry< A >::get_entry ( OspfTypes::AreaID  area,
RouteEntry< A > &  rt 
) const

Look from an entry for this specific area.

Parameters:
areaarea ID.
rtif a match is found this is filled in with the route.
Returns:
true if an entry for this area was found.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations