fs::ListTree< T > Class Template Reference

#include <tree.h>

List of all members.

Public Member Functions

ListTree< T > * GetRoot ()
void SetRoot (ListTree< T > *r)
void SetData (const T &d)
T & GetData ()
ListTree< T > * AddLeaf (const T &data)
int GetLeafCount ()
ListTree< T > * GetLeaf (int iIndex)
void DeleteLeaf (int iIndex)
int GetDepth ()
void Clear ()
 ListTree ()
 ~ListTree ()

Protected Attributes

ListTree< T > * root
list< ListTree * > leafs
data


Detailed Description

template<class T>
class fs::ListTree< T >

Definition at line 14 of file tree.h.


Constructor & Destructor Documentation

template<class T>
fs::ListTree< T >::ListTree (  )  [inline]

Definition at line 48 of file tree.h.

References NULL, and fs::ListTree< T >::root.

template<class T>
fs::ListTree< T >::~ListTree (  )  [inline]

Definition at line 49 of file tree.h.

References fs::ListTree< T >::leafs.


Member Function Documentation

template<class T>
ListTree<T>* fs::ListTree< T >::GetRoot (  )  [inline]

Definition at line 17 of file tree.h.

References fs::ListTree< T >::GetRoot(), and fs::ListTree< T >::root.

Referenced by fs::ListTree< T >::GetRoot().

template<class T>
void fs::ListTree< T >::SetRoot ( ListTree< T > *  r  )  [inline]

template<class T>
void fs::ListTree< T >::SetData ( const T &  d  )  [inline]

Definition at line 20 of file tree.h.

References fs::ListTree< T >::SetData().

Referenced by fs::ListTree< T >::AddLeaf(), and fs::ListTree< T >::SetData().

template<class T>
T& fs::ListTree< T >::GetData (  )  [inline]

Definition at line 21 of file tree.h.

References fs::ListTree< T >::GetData().

Referenced by fs::ListTree< T >::GetData().

template<class T>
ListTree<T>* fs::ListTree< T >::AddLeaf ( const T &  data  )  [inline]

template<class T>
int fs::ListTree< T >::GetLeafCount (  )  [inline]

Definition at line 32 of file tree.h.

References fs::ListTree< T >::GetLeafCount(), and fs::ListTree< T >::leafs.

Referenced by fs::ListTree< T >::GetLeafCount().

template<class T>
ListTree<T>* fs::ListTree< T >::GetLeaf ( int  iIndex  )  [inline]

Definition at line 33 of file tree.h.

References fs::ListTree< T >::GetLeaf(), and fs::ListTree< T >::leafs.

Referenced by fs::ListTree< T >::GetLeaf().

template<class T>
void fs::ListTree< T >::DeleteLeaf ( int  iIndex  )  [inline]

Definition at line 34 of file tree.h.

References fs::ListTree< T >::DeleteLeaf(), and fs::ListTree< T >::leafs.

Referenced by fs::ListTree< T >::DeleteLeaf().

template<class T>
int fs::ListTree< T >::GetDepth (  )  [inline]

Definition at line 36 of file tree.h.

References fs::ListTree< T >::GetDepth(), and fs::ListTree< T >::root.

Referenced by fs::ListTree< T >::GetDepth().

template<class T>
void fs::ListTree< T >::Clear (  )  [inline]

Definition at line 41 of file tree.h.

References fs::ListTree< T >::Clear(), and fs::ListTree< T >::leafs.

Referenced by fs::ListTree< T >::Clear().


Member Data Documentation

template<class T>
ListTree<T>* fs::ListTree< T >::root [protected]

template<class T>
list<ListTree*> fs::ListTree< T >::leafs [protected]

template<class T>
T fs::ListTree< T >::data [protected]

Definition at line 53 of file tree.h.


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

Generated on Sun May 25 00:21:38 2008 by  doxygen 1.5.6