DTN::RoutingTable Class Reference

Abstract base class for DTN routing tables. More...

#include <dtn/RoutingTable.h>

Inheritance diagram for DTN::RoutingTable:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 RoutingTable ()
 Default constructor.
virtual ~RoutingTable ()
 Virtual destructor.
virtual Linktarget (const Bundle &b) const =0
 Find the next hop for a Bundle.


Detailed Description

Abstract base class for DTN routing tables.

This is a very simple structure that contains a list of Routes and a way to retrieve an appropriate Link for a given Bundle.

Definition at line 48 of file RoutingTable.h.


Member Function Documentation

virtual Link& DTN::RoutingTable::target ( const Bundle b  )  const [pure virtual]

Find the next hop for a Bundle.

Subclasses must define this appropriately. Different types of routing tables will have different matching criteria.

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

Implemented in DTN::ExplicitRoutingTable, and DTN::PrefixRoutingTable.

Referenced by DTN::RoutedForwarding::target().


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