A tree container which can have a parent and children.
More...
#include <pg_tree.h>
List of all members.
Detailed Description
template<class T>
class pgTree< T >
A tree container which can have a parent and children.
- Template Parameters:
-
| T | The type which is stored in the pgTree. |
Member Function Documentation
Returns the last descendant of this pgTree.
If this pgTree has no child, returns itself.
- Returns:
- The last descendant of this pgTree.
Returns the next pgTree of this pgTree.
If this pgTree has no next pgTree, returns NULL. This method is used to follow the whole tree as list structure.
- Returns:
- The next pgTree of this pgTree.
Returns the previous pgTree of this pgTree.
If this pgTree has no previous pgTree, returns NULL. This method is used to follow the whole tree as list structure.
- Returns:
- The previous pgTree of this pgTree.
template<class T>
| T* pgTree< T >::getSelf |
( |
|
) |
const [inline] |
Returns the value of this pgTree.
- Returns:
- The value of this pgTree.
template<class T>
| bool pgTree< T >::hasChild |
( |
|
) |
const [inline] |
template<class T>
| bool pgTree< T >::hasParent |
( |
|
) |
const [inline] |
template<class T>
| void pgTree< T >::init |
( |
T * |
self |
) |
[inline] |
Initializes this pgTree to have the specified value.
This method can be called more than once.
- Parameters:
-
| [in] | self | The pointer to a value. |
Insertes this pgTree after the specified pgTree.
- Parameters:
-
template<class T>
| void pgTree< T >::joinBefore |
( |
pgTree< T > * |
tree |
) |
[inline] |
Insertes this pgTree before the specified pgTree.
- Parameters:
-
The documentation for this class was generated from the following file: