#include <dtn/ExplicitRoutingTable.h>


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. | |
| Link & | target (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. | |
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.
Find the next hop for a Bundle.
| b | A bundle to 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.
| 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.
| dest | The destination for a routing table entry |
Definition at line 90 of file ExplicitRoutingTable.cc.
1.5.4