#include <dynamic_node_array.h>


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. | |
| World & | world_w (void) throw () |
| typedef T shawn::DynamicNodeArray< T >::value_type |
| typedef T& shawn::DynamicNodeArray< T >::reference |
| typedef const T& shawn::DynamicNodeArray< T >::const_reference |
| typedef int shawn::DynamicNodeArray< T >::size_type |
| shawn::DynamicNodeArray< T >::DynamicNodeArray | ( | World & | w | ) | [inline] |
| virtual shawn::DynamicNodeArray< T >::~DynamicNodeArray | ( | ) | [inline, virtual] |
| bool shawn::DynamicNodeArray< T >::find | ( | Node & | v | ) | throw () [inline] |

| reference shawn::DynamicNodeArray< T >::operator[] | ( | const Node & | v | ) | throw () [inline] |
| const_reference shawn::DynamicNodeArray< T >::operator[] | ( | const Node & | v | ) | const throw () [inline] |
| void shawn::DynamicNodeArray< T >::clear_to | ( | const value_type & | val | ) | throw () [inline] |
| 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.
| virtual void shawn::DynamicNodeArray< T >::node_removed | ( | Node & | ) | throw () [inline, virtual] |
| 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.
| int | Old ID | |
| int | New ID |
Implements shawn::NodeChangeListener.
| virtual bool shawn::DynamicNodeArray< T >::invalidate | ( | void | ) | throw () [inline, virtual] |
Is called when the world gets deleted.
Implements shawn::NodeChangeListener.
| World& shawn::DynamicNodeArray< T >::world_w | ( | void | ) | throw () [inline] |
1.5.6