|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
7 #ifndef ELM_INHSTRUCT_SORTEDBINTREE_H
8 #define ELM_INHSTRUCT_SORTEDBINTREE_H
10 #include <elm/inhstruct/BinTree.h>
12 namespace elm {
namespace inhstruct {
17 void insert(
Node *node,
Node *new_node);
29 inline int count(
void);
30 Node *
get(Node *node);
32 inline void visit(Visitor *visitor);
33 inline void search(Visitor *visitor);
36 void insert(Node *node);
37 void remove(Node *node);
38 inline void clear(
void);
52 return get(node) != 0;
56 return BinTree::visit(visitor);
60 BinTree::search(visitor);
69 #endif // ELM_INHSTRUCT_SORTEDBINTREE_H
virtual int compare(Node *node1, Node *node2)=0
void visit(Visitor *visitor)
Definition: SortedBinTree.h:55
void clear(void)
Definition: SortedBinTree.h:63
bool contains(Node *node)
Definition: SortedBinTree.h:51
void clear(void)
Definition: BinTree.h:106
void search(Visitor *visitor)
Definition: SortedBinTree.h:59
bool isEmpty(void) const
Definition: BinTree.h:81
Node * get(Node *node)
Definition: inhstruct_SortedBinTree.cpp:80
int count(void)
Definition: SortedBinTree.h:47
virtual ~SortedBinTree(void)
Definition: SortedBinTree.h:25
IntFormat right(IntFormat fmt)
Definition: Output.h:264
IntFormat left(IntFormat fmt)
Definition: Output.h:263
Definition: SortedBinTree.h:15
int count(void) const
Definition: BinTree.h:87
bool isEmpty(void)
Definition: SortedBinTree.h:43