SampleAppNS::Manager Class Reference
[pydtn.sampleapp]

Bookkeeping class to match application instances with their simulator-level nodes. More...

#include <sampleapp/Manager.h>

List of all members.

Public Types

typedef std::map< SampleApp *,
WrapNode * > 
NodeMap
 Map to find nodes given application instances.
typedef std::map< WrapNode *,
SampleApp * > 
AppMap
 Map to find application instances given nodes.

Public Member Functions

 Manager ()
 Constructor.
virtual ~Manager ()
 Virtual destructor.
void add (SampleApp *app, WrapNode *node)
 Associate an application instance with a node.
WrapNodelookup (SampleApp *app)
 Find the node for an application instance.
SampleApplookup (WrapNode *node)
 Find the application instance for a node.


Detailed Description

Bookkeeping class to match application instances with their simulator-level nodes.

Definition at line 49 of file Manager.h.


Member Function Documentation

void Manager::add ( SampleApp app,
WrapNode node 
)

Associate an application instance with a node.

Parameters:
app The application instance
node The node

Definition at line 45 of file Manager.cc.

Referenced by sampleapp_attach().

WrapNode * Manager::lookup ( SampleApp app  ) 

Find the node for an application instance.

Parameters:
app An application instance
Returns:
the corresponding node, or 0 if there isn't one

Definition at line 54 of file Manager.cc.

Referenced by sampleapp_send(), and SampleAppNS::SampleApp::send().

SampleApp * Manager::lookup ( WrapNode node  ) 

Find the application instance for a node.

Parameters:
node A simulator-level node
Returns:
the corresponding application instance, or 0 if there isn't one

Definition at line 62 of file Manager.cc.


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