103 template <
class R,
class N,
class K,
int n = 0>
class TreeInNode;
104 template <
class R,
class N,
class K,
int n = 0>
class TreeInRoot;
119 template <
class R,
class N,
class K,
int n>
class TreeInRoot {
128 int compare(N
const& node1, N
const& node2)
const;
131 virtual void add(N& node);
133 void remove(N& node);
134 void remove(N* node);
135 N*
find(K key)
const;
137 N*
base()
const {
return base_; }
143 #if __cplusplus < 201101L
166 template <
class R,
class N,
class K,
int n>
class TreeInNode {
176 virtual void remove();
178 R*
root()
const {
return root_; }
180 N*
left()
const {
return left_; }
188 #if __cplusplus < 201101L
TreeInRoot()
Definition: TreeIn.hpp:390
int compareKey(N const &node, K key) const
N * last() const
Definition: TreeIn.hpp:176
void check() const
Definition: TreeIn.hpp:93
N * right() const
Definition: TreeIn.h:181
void check() const
Definition: TreeIn.hpp:61
N * parent() const
Definition: TreeIn.h:179
~TreeInNode()
Definition: TreeIn.hpp:444
N * first() const
Definition: TreeIn.hpp:164
virtual void add(N &node)
Definition: TreeIn.hpp:289
N * next() const
Definition: TreeIn.hpp:107
void addTo(R &root)
Definition: TreeIn.hpp:348
int compare(N const &node1, N const &node2) const
N * prev() const
Definition: TreeIn.hpp:137
~TreeInRoot()
Definition: TreeIn.hpp:402
N * base() const
Definition: TreeIn.h:137
N * left() const
Definition: TreeIn.h:180
N * find(K key) const
Definition: TreeIn.hpp:371
TreeInNode()
Definition: TreeIn.hpp:432
R * root() const
Return pointer to list we are on.
Definition: TreeIn.h:178