5 #include <libutl/THeapIt.h> 50 THeap(
bool owner,
bool multiSet =
true);
55 return super::add(const_cast<T&>(
object));
61 return super::add(const_cast<T*>(
object));
67 super::add(collection);
74 res.
copy(Heap::begin());
82 res.
copy(Heap::begin());
90 res.
copy(Heap::end());
98 res.
copy(Heap::end());
106 return utl::cast<T>(Heap::find(key));
112 return utl::cast<T>(Heap::pop());
125 :
Heap(size, increment, owner, multiSet, ordering)
133 :
Heap(owner, multiSet)
#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).
virtual void copy(const Object &rhs)
Copy another HeapIt.
THeap(size_t size, size_t increment=uint_t_max, bool owner=true, bool multiSet=true, Ordering *ordering=nullptr)
Constructor.
Object comparison abstraction.
Template version of Heap.
Templated proxy for BidIt.
T * findT(const Object &key) const
See find().
const uint_t uint_t_max
Maximum uint_t value.
#define UTL_CLASS_DECL_TPL(DC, T, BC)
Declaration of standard UTL++ functionality for a template class with one parameter.
Template version of HeapIt.
Root of UTL++ class hierarchy.