shawn::DynamicNodeArray< T > Class Template Reference

#include <dynamic_node_array.h>

Inheritance diagram for shawn::DynamicNodeArray< T >:

Inheritance graph
[legend]
Collaboration diagram for shawn::DynamicNodeArray< T >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef T value_type
typedef T & reference
typedef const T & const_reference
typedef int size_type

Public Member Functions

 DynamicNodeArray (World &w)
virtual ~DynamicNodeArray ()
bool find (Node &v) throw ()
reference operator[] (const Node &v) throw ()
const_reference operator[] (const Node &v) const throw ()
void clear_to (const value_type &val) throw ()
virtual void node_added (Node &v) throw ()
 Is called whenever a node gets added to the world.
virtual void node_removed (Node &v) throw ()
 Is called whenever a node gets removed from the world.
virtual void id_changed (int old_id, int new_id) throw ()
virtual bool invalidate (void) throw ()
 Is called when the world gets deleted.
Worldworld_w (void) throw ()

template<typename T>
class shawn::DynamicNodeArray< T >


Member Typedef Documentation

template<typename T>
typedef T shawn::DynamicNodeArray< T >::value_type

template<typename T>
typedef T& shawn::DynamicNodeArray< T >::reference

template<typename T>
typedef const T& shawn::DynamicNodeArray< T >::const_reference

template<typename T>
typedef int shawn::DynamicNodeArray< T >::size_type


Constructor & Destructor Documentation

template<typename T>
shawn::DynamicNodeArray< T >::DynamicNodeArray ( World w  )  [inline]

template<typename T>
virtual shawn::DynamicNodeArray< T >::~DynamicNodeArray (  )  [inline, virtual]


Member Function Documentation

template<typename T>
bool shawn::DynamicNodeArray< T >::find ( Node v  )  throw () [inline]

Here is the caller graph for this function:

template<typename T>
reference shawn::DynamicNodeArray< T >::operator[] ( const Node v  )  throw () [inline]

template<typename T>
const_reference shawn::DynamicNodeArray< T >::operator[] ( const Node v  )  const throw () [inline]

template<typename T>
void shawn::DynamicNodeArray< T >::clear_to ( const value_type val  )  throw () [inline]

template<typename T>
virtual void shawn::DynamicNodeArray< T >::node_added ( Node  )  throw () [inline, virtual]

Is called whenever a node gets added to the world.

Implements shawn::NodeChangeListener.

Reimplemented in shawn::ConstantEdgeRandom.

template<typename T>
virtual void shawn::DynamicNodeArray< T >::node_removed ( Node  )  throw () [inline, virtual]

Is called whenever a node gets removed from the world.

Implements shawn::NodeChangeListener.

template<typename T>
virtual void shawn::DynamicNodeArray< T >::id_changed ( int  ,
int   
) throw () [inline, 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

Implements shawn::NodeChangeListener.

template<typename T>
virtual bool shawn::DynamicNodeArray< T >::invalidate ( void   )  throw () [inline, virtual]

Is called when the world gets deleted.

Returns:
true, if the world should delete the listener

Implements shawn::NodeChangeListener.

template<typename T>
World& shawn::DynamicNodeArray< T >::world_w ( void   )  throw () [inline]


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

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