User Manual, Developers Guide and API Documentation

wns::container::FastListEnabler< T > Class Template Reference

Derive from this class be able to put pointers of the child class into FastList containers. More...

#include <container/FastListEnabler.hpp>

Inheritance diagram for wns::container::FastListEnabler< T >:

Inheritance graph
[legend]
Collaboration diagram for wns::container::FastListEnabler< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FastListEnabler ()
 Default constructor.
FastListNode< T > * getFastListNode (FastList< T > *f) const
 Return the FastListNode belonging to this objects and a specific FastList.
bool isInList (FastList< T > *f) const
 Is this object in FastList "f".
void removeFastListNode (FastList< T > *f)
 Remove this object from a specific FastList.
void removeFromAllLists ()
 Remove this Node from all lists where it is contained.
void setFastListNode (FastList< T > *f, FastListNode< T > *FLN)
 Set FastListNode belonging to this objects and a specific FastList.
virtual ~FastListEnabler ()
 Destructor - Removes this objects from all lists.

Private Types

typedef std::map< FastList< T >
*, FastListNode< T > * > 
MapType
 Map with FastList as key and FastListNode as data.

Private Attributes

MapType listsAndNodes
 Map with all FastLists and FastListNodes of this object.


Detailed Description

template<typename T>
class wns::container::FastListEnabler< T >

Author:
Marc Schinnenburg <marc@schinnenburg.com>

Definition at line 43 of file FastListEnabler.hpp.


Member Typedef Documentation

template<typename T>
typedef std::map<FastList<T>*, FastListNode<T>*> wns::container::FastListEnabler< T >::MapType [private]

Definition at line 49 of file FastListEnabler.hpp.


Constructor & Destructor Documentation

template<typename T>
wns::container::FastListEnabler< T >::FastListEnabler (  )  [inline]

Definition at line 54 of file FastListEnabler.hpp.

template<typename T>
virtual wns::container::FastListEnabler< T >::~FastListEnabler (  )  [inline, virtual]

Definition at line 61 of file FastListEnabler.hpp.


Member Function Documentation

template<typename T>
FastListNode<T>* wns::container::FastListEnabler< T >::getFastListNode ( FastList< T > *  f  )  const [inline]

Definition at line 70 of file FastListEnabler.hpp.

template<typename T>
bool wns::container::FastListEnabler< T >::isInList ( FastList< T > *  f  )  const [inline]

Definition at line 114 of file FastListEnabler.hpp.

template<typename T>
void wns::container::FastListEnabler< T >::removeFastListNode ( FastList< T > *  f  )  [inline]

Definition at line 91 of file FastListEnabler.hpp.

template<typename T>
void wns::container::FastListEnabler< T >::removeFromAllLists (  )  [inline]

Definition at line 100 of file FastListEnabler.hpp.

template<typename T>
void wns::container::FastListEnabler< T >::setFastListNode ( FastList< T > *  f,
FastListNode< T > *  FLN 
) [inline]

Definition at line 80 of file FastListEnabler.hpp.


Member Data Documentation

template<typename T>
MapType wns::container::FastListEnabler< T >::listsAndNodes [private]

Definition at line 123 of file FastListEnabler.hpp.


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

Generated on Sat May 26 03:32:52 2012 for openWNS by  doxygen 1.5.5