AliasLink Class Reference
[pydtn]

An alias for a SimLink. More...

#include <pydtn/AliasLink.h>

Inheritance diagram for AliasLink:

Inheritance graph
[legend]
Collaboration diagram for AliasLink:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AliasLink (SimLink *link)
 Constructor taking a pointer to a SimLink.
 AliasLink (const AliasLink &aLink)
 Copy constructor.
virtual ~AliasLink ()
 Virtual destructor — does nothing.
void send (DTN::Bundle *b)
 Forward a DTN::Bundle to the send method of the aliased SimLink.
const DTN::ByteString & remoteAddr () const
 
Returns:
the remote address of the aliased DTN::Link


Protected Member Functions

 AliasLink ()
 Default constructor, to inhibit the automatic definition.


Detailed Description

An alias for a SimLink.

This class allows a DTN::Node to take ownership of it, including deleting it, without affecting the actual SimLink that describes a connection between two DTN::Nodes. Multiple aliases can be created for a particular SimLink, so that a link may appear multiple times in a routing table for different address prefixes.

Definition at line 51 of file AliasLink.h.


Constructor & Destructor Documentation

AliasLink::AliasLink ( SimLink link  )  [inline]

Constructor taking a pointer to a SimLink.

Parameters:
link The SimLink to alias

Definition at line 58 of file AliasLink.h.


Member Function Documentation

void AliasLink::send ( DTN::Bundle b  )  [inline, virtual]

Forward a DTN::Bundle to the send method of the aliased SimLink.

Parameters:
b a DTN::Bundle to forward; passes ownership

Implements DTN::Link.

Definition at line 70 of file AliasLink.h.

References SimLink::send().


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