shawn::NodeChangeListener Class Reference

#include <node_change_listener.h>

Inheritance diagram for shawn::NodeChangeListener:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~NodeChangeListener ()
virtual void node_added (Node &)=0 throw ()
 Is called whenever a node gets added to the world.
virtual void node_removed (Node &)=0 throw ()
 Is called whenever a node gets removed from the world.
virtual void id_changed (int, int)=0 throw ()
virtual bool invalidate (void)=0 throw ()
 Is called when the world gets deleted.


Detailed Description

Listener to receive events when nodes are added to the world

Constructor & Destructor Documentation

virtual shawn::NodeChangeListener::~NodeChangeListener (  )  [virtual]


Member Function Documentation

virtual void shawn::NodeChangeListener::node_added ( Node  )  throw () [pure virtual]

virtual void shawn::NodeChangeListener::node_removed ( Node  )  throw () [pure virtual]

virtual void shawn::NodeChangeListener::id_changed ( int  ,
int   
) throw () [pure virtual]

Is called whenever the id of a node has changed. This occurs, for example, if the method reorganize_nodes() of the world is called, because the internal NodeVector is optimized (compressed) there and ids may change.

Parameters:
int Old ID
int New ID

Implemented in shawn::EdgeModel, shawn::DynamicNodeArray< T >, shawn::StaticNodeArray< T >, shawn::DynamicNodeArray< int >, shawn::DynamicNodeArray< std::set< csma_msg * > >, shawn::DynamicNodeArray< shawn::StatsChainTransmissionModel::Counter >, and shawn::DynamicNodeArray< std::set< NodeInfoHandle, NodeInfoSort > >.

virtual bool shawn::NodeChangeListener::invalidate ( void   )  throw () [pure virtual]


The documentation for this class was generated from the following file:

Generated on Tue Feb 7 00:00:59 2012 for Shawn by  doxygen 1.5.6