shawn::StaticNodeArray< T > Class Template Reference

#include <static_node_array.h>

Inheritance diagram for shawn::StaticNodeArray< T >:

Inheritance graph
[legend]
Collaboration diagram for shawn::StaticNodeArray< 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

 StaticNodeArray (const World &w)
 ~StaticNodeArray ()
reference operator[] (const Node &v) throw ()
const_reference operator[] (const Node &v) const throw ()
const_reference operator() (const Node &v) const throw ()
void set (const Node &v, const_reference val) throw ()
const_reference get (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.

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


Member Typedef Documentation

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

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

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

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


Constructor & Destructor Documentation

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

template<typename T>
shawn::StaticNodeArray< T >::~StaticNodeArray (  )  [inline]


Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

template<typename T>
void shawn::StaticNodeArray< T >::set ( const Node v,
const_reference  val 
) throw () [inline]

Here is the call graph for this function:

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

Here is the call graph for this function:

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

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

Is called whenever a node gets added to the world.

Implements shawn::NodeChangeListener.

template<typename T>
virtual void shawn::StaticNodeArray< 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::StaticNodeArray< 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::StaticNodeArray< 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.


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

Generated on Sun Feb 5 00:01:05 2012 for Shawn by  doxygen 1.5.6