#include <dtn/PrefixRoutingTable.h>


Public Types | |
|
typedef std::map< ByteString, PrefixRoute * > | RouteMap |
| Data structure to hold routing table entries. | |
Public Member Functions | |
| PrefixRoutingTable () | |
| Default constructor. | |
| virtual | ~PrefixRoutingTable () |
| Virtual destructor. | |
| Link & | target (const Bundle &b) const |
| Find the next hop for a Bundle. | |
| virtual void | addRoute (PrefixRoute *r) |
| Add a prefix route to the routing table. | |
| void | delRoute (const ByteString &pfix) |
| Delete a Route from the internal list. | |
Definition at line 45 of file PrefixRoutingTable.h.
Find the next hop for a Bundle.
Subclasses must define this appropriately. Different types of routing tables will have different matching criteria.
| b | A bundle to be forwarded |
Implements DTN::RoutingTable.
Definition at line 57 of file PrefixRoutingTable.cc.
References DTN::Bundle::destination().
| void PrefixRoutingTable::addRoute | ( | PrefixRoute * | r | ) | [virtual] |
Add a prefix route to the routing table.
| r | A prefix route; this class takes ownership of the memory |
Definition at line 83 of file PrefixRoutingTable.cc.
References DTN::PrefixRoute::prefix().
Referenced by PrefixRoutingEntity::configure().
| void PrefixRoutingTable::delRoute | ( | const ByteString & | pfix | ) |
Delete a Route from the internal list.
| pfix | A prefix for a routing table entry |
Definition at line 92 of file PrefixRoutingTable.cc.
1.5.4