DTN::ExplicitRoutingTable Class Reference

Exact-matching routing table. More...

#include <dtn/ExplicitRoutingTable.h>

Inheritance diagram for DTN::ExplicitRoutingTable:

Inheritance graph
[legend]
Collaboration diagram for DTN::ExplicitRoutingTable:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< ByteString,
ExplicitRoute * > 
RouteMap
 Data structure to hold routing table entries.

Public Member Functions

 ExplicitRoutingTable ()
 Default constructor.
virtual ~ExplicitRoutingTable ()
 Virtual destructor.
Linktarget (const Bundle &b) const
 Find the next hop for a Bundle.
virtual void addRoute (ExplicitRoute *r)
 Add an explicit route to the routing table.
void delRoute (const RouteMap::key_type &dest)
 Delete a Route from the internal list.


Detailed Description

Exact-matching routing table.

This type of RoutingTable must know a next-hop link for each Node in the network. It is, obviously, impractical for any but the simplest networks.

Definition at line 49 of file ExplicitRoutingTable.h.


Member Function Documentation

Link & ExplicitRoutingTable::target ( const Bundle b  )  const [virtual]

Find the next hop for a Bundle.

Parameters:
b A bundle to be forwarded
Returns:
the link through which b should be forwarded

Implements DTN::RoutingTable.

Definition at line 58 of file ExplicitRoutingTable.cc.

References DTN::Bundle::destination().

void ExplicitRoutingTable::addRoute ( ExplicitRoute r  )  [virtual]

Add an explicit route to the routing table.

Parameters:
r A route; this class takes ownership of the memory

Definition at line 81 of file ExplicitRoutingTable.cc.

References DTN::ExplicitRoute::target().

Referenced by ExplicitRoutingEntity::configure().

void ExplicitRoutingTable::delRoute ( const RouteMap::key_type &  dest  ) 

Delete a Route from the internal list.

Parameters:
dest The destination for a routing table entry

Definition at line 90 of file ExplicitRoutingTable.cc.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:48 2008 for Pydtn Simulator by  doxygen 1.5.4