|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_DATA_TREE_H
22 #define ELM_DATA_TREE_H
24 #include <elm/PreIterator.h>
25 #include <elm/inhstruct/Tree.h>
35 inline const T&
data(
void)
const {
return _value; }
36 inline T&
data(
void) {
return _value; }
54 inline operator bool(
void)
const
63 inline const T&
item(
void)
const {
return static_cast<Tree *
>(it.
item())->_value; }
68 inline operator T()
const {
return item(); }
69 inline operator Tree *()
const {
return item(); }
90 template <
class TT>
void addAll(
const TT& coll)
109 #endif // ELM_DATA_TREE_H
const Tree * children(void) const
Definition: Tree.h:39
int count(void) const
Definition: Tree.h:50
Tree * operator->() const
Definition: Tree.h:71
Definition: util_WAHVector.cpp:157
void removeAll(const TT &coll)
Definition: Tree.h:87
void removeChild(Tree *child)
Definition: inhstruct_Tree.cpp:145
T & data(void)
Definition: Tree.h:36
const Tree * sibling(void) const
Definition: Tree.h:43
const T & item(void) const
Definition: Tree.h:63
bool hasChild(Tree *tree) const
Definition: Tree.h:47
bool hasChild(Tree *tree) const
Definition: Tree.h:39
Tree * item(void) const
Definition: Tree.h:51
Iter & operator++()
Definition: Tree.h:72
void removeChild(Tree *child)
Definition: Tree.h:92
bool contains(Tree *tree) const
Definition: Tree.h:49
void addSibling(Tree *newSibling)
Definition: Tree.h:75
void remove(Tree *child)
Definition: Tree.h:94
void add(Tree *child)
Definition: Tree.h:88
void clear(void)
Definition: Tree.h:100
void next(void)
Definition: Tree.h:52
void removeAll(const TT &coll)
Definition: Tree.h:98
void prependChild(Tree *child)
Definition: Tree.h:68
const T & data(void) const
Definition: Tree.h:35
void remove(Tree *child)
Definition: Tree.h:85
void addAll(const TT &coll)
Definition: Tree.h:90
Tree * children(void)
Definition: Tree.h:41
void remove(const Iter &iter)
Definition: Tree.h:96
void appendChild(Tree *child)
Definition: inhstruct_Tree.cpp:115
bool isEmpty(void) const
Definition: Tree.h:42
Iter operator++(int)
Definition: Tree.h:73
bool ended(void) const
Definition: Tree.h:50
bool equals(Iter i) const
Definition: Tree.h:65
bool isEmpty(void) const
Definition: Tree.h:52
Tree * operator*() const
Definition: Tree.h:70
void appendChild(Tree *child)
Definition: Tree.h:84
int count(void) const
Definition: inhstruct_Tree.cpp:76
void addAll(const TT &coll)
Definition: Tree.h:82
Tree * sibling(void)
Definition: Tree.h:45
Tree * sibling(void) const
Definition: Tree.h:38
Tree(const T &value)
Definition: Tree.h:33
void prependChild(Tree *child)
Definition: Tree.h:82
bool operator==(Iter i) const
Definition: Tree.h:74
bool equals(Iter ii) const
Definition: Tree.h:53
bool operator!=(Iter i) const
Definition: Tree.h:75
Tree * children(void) const
Definition: Tree.h:37
void addSibling(Tree *newSibling)
Definition: Tree.h:86
void add(Tree *child)
Definition: Tree.h:81
void clear(void)
Definition: Tree.h:89
void next(void)
Definition: Tree.h:64
Iter(const Iter &iter)
Definition: Tree.h:61
bool ended(void) const
Definition: Tree.h:62
Iter(const Tree *tree)
Definition: Tree.h:60