5 #include <libutl/TRBtreeIt.h> 37 TRBtree(
bool owner,
bool multiSet =
false,
Ordering* ordering =
nullptr);
42 return super::add(const_cast<T&>(
object));
48 return super::add(const_cast<T*>(
object));
54 super::add(collection);
61 res.
copy(RBtree::begin());
69 res.
copy(RBtree::begin());
77 res.
copy(RBtree::end());
85 res.
copy(RBtree::end());
90 findT(
const Object& key)
const 92 return utl::cast<T>(RBtree::find(key));
96 findIt(
const Object& key)
const 99 res.
copy(RBtree::findIt(key));
107 res.
copy(RBtree::findIt(key));
112 findFirstIt(
const Object& key,
BidIt& it,
bool insert =
false)
const 114 super::findFirstIt(key, it, insert);
120 super::findFirstIt(key, it, insert);
124 findFirstIt(
const Object& key,
bool insert =
false)
const 127 res.
copy(RBtree::findFirstIt(key, insert));
132 findFirstIt(
const Object& key,
bool insert =
false)
135 res.
copy(RBtree::findFirstIt(key, insert));
142 super::findLastIt(key, it);
148 super::findLastIt(key, it);
152 findLastIt(
const Object& key)
const 155 res.
copy(RBtree::findLastIt(key));
160 findLastIt(
const Object& key)
163 res.
copy(RBtree::findLastIt(key));
183 :
RBtree(owner, multiSet, ordering)
virtual void copy(const Object &rhs)
Copy another iterator.
#define UTL_CLASS_IMPL_TPL(className, T)
Implementation of standard UTL++ functionality for a template class.
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
Object comparison abstraction.
void remove(FwdIt &begin, const FwdIt &end, bool cmp=false, const Predicate *pred=nullptr, bool predVal=false)
Remove objects from a sequence.
Template version of RBtree.
virtual void findLastIt(const Object &key, BidIt &it)
Find the last object matching the given key.
virtual void findFirstIt(const Object &key, BidIt &it, bool insert=false)
Find the first object matching the given key.
In-order bi-directional BinTree iterator.
Bi-directional iterator abstraction.
#define UTL_CLASS_DECL_TPL(DC, T, BC)
Declaration of standard UTL++ functionality for a template class with one parameter.
Template version of RBtreeIt.
Root of UTL++ class hierarchy.