22 #ifndef ELM_GENSTRUCT_TREE_H
23 #define ELM_GENSTRUCT_TREE_H
25 #include <elm/PreIterator.h>
26 #include <elm/inhstruct/Tree.h>
28 namespace elm {
namespace genstruct {
36 inline const T&
data(
void)
const {
return _value; }
37 inline T&
data(
void) {
return _value; }
55 inline operator bool(
void)
const
64 inline const T&
item(
void)
const
65 {
return static_cast<Tree *
>(it.
item())->_value; }
80 template <
class TT>
void addAll(
const TT& coll)
84 inline void remove(
Tree *child)
99 #endif // ELM_GENSTRUCT_TREE_H
Tree * item(void) const
Definition: Tree.h:51
void prependChild(Tree *child)
Definition: Tree.h:58
Definition: PreIterator.h:29
void prependChild(Tree *child)
Definition: Tree.h:72
void addSibling(Tree *newSibling)
Definition: Tree.h:76
Tree * sibling(void)
Definition: Tree.h:46
bool hasChild(Tree *tree) const
Definition: Tree.h:39
bool ended(void) const
Definition: Tree.h:50
void addSibling(Tree *newSibling)
Definition: Tree.h:65
void next(void)
Definition: Tree.h:52
void clear(void)
Definition: Tree.h:90
Tree(const T &value)
Definition: Tree.h:34
int count(void) const
Definition: Tree.h:51
bool isEmpty(void) const
Definition: Tree.h:42
T & data(void)
Definition: Tree.h:37
void next(void)
Definition: Tree.h:66
value_t value(CString name, int value)
Definition: rtti.h:40
bool isEmpty(void) const
Definition: Tree.h:53
Tree * sibling(void) const
Definition: Tree.h:38
void removeAll(const TT &coll)
Definition: Tree.h:88
Tree * children(void) const
Definition: Tree.h:37
Tree * children(void)
Definition: Tree.h:42
bool hasChild(Tree *tree) const
Definition: Tree.h:48
void clear(void)
Definition: Tree.h:79
void add(Tree *child)
Definition: Tree.h:78
void removeChild(Tree *child)
Definition: inhstruct_Tree.cpp:145
bool contains(Tree *tree) const
Definition: Tree.h:50
bool ended(void) const
Definition: Tree.h:63
void remove(Tree *child)
Definition: Tree.h:75
const T & data(void) const
Definition: Tree.h:36
const Tree * sibling(void) const
Definition: Tree.h:44
void appendChild(Tree *child)
Definition: Tree.h:74
void appendChild(Tree *child)
Definition: inhstruct_Tree.cpp:115
void addAll(const TT &coll)
Definition: Tree.h:80
void removeAll(const TT &coll)
Definition: Tree.h:77
const Tree * children(void) const
Definition: Tree.h:40
void add(Tree *child)
Definition: Tree.h:71
void removeChild(Tree *child)
Definition: Tree.h:82
Iterator(const Iterator &iter)
Definition: Tree.h:61
void addAll(const TT &coll)
Definition: Tree.h:72
Iterator(const Tree *tree)
Definition: Tree.h:62
int count(void) const
Definition: inhstruct_Tree.cpp:76
const T & item(void) const
Definition: Tree.h:64