5 #include <libutl/TListIt.h> 38 TList(
bool owner,
bool multiSet =
true,
bool keepSorted =
false,
Ordering* ordering =
nullptr);
43 return utl::cast<T>(List::front());
49 return utl::cast<T>(List::back());
55 return super::add(const_cast<T&>(
object));
61 return super::add(const_cast<T*>(
object));
67 super::add(collection);
74 return utl::cast<T>(List::find(key));
78 findIt(
const Object& key)
const 81 res.
copy(List::findIt(key));
89 res.
copy(List::findIt(key));
94 findFirstIt(
const Object& key,
BidIt& it,
bool insert =
false)
const 96 super::findFirstIt(key, it, insert);
102 super::findFirstIt(key, it, insert);
106 findFirstIt(
const Object& key,
bool insert =
false)
const 109 res.
copy(List::findFirstIt(key, insert));
114 findFirstIt(
const Object& key,
bool insert =
false)
117 res.
copy(List::findFirstIt(key, insert));
124 super::findLastIt(key, it);
130 super::findLastIt(key, it);
134 findLastIt(
const Object& key)
const 137 res.
copy(List::findLastIt(key));
142 findLastIt(
const Object& key)
145 res.
copy(List::findLastIt(key));
152 return utl::cast<T>(List::popFront());
158 return utl::cast<T>(List::popBack());
165 res.
copy(List::begin());
173 res.
copy(List::begin());
181 res.
copy(List::end());
189 res.
copy(List::end());
203 :
List(owner, multiSet, keepSorted, ordering)
T * findT(const Object &key) const
See find().
#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.
Template version of ListIt.
Templated proxy for BidIt.
Bi-directional iterator abstraction.
virtual void copy(const Object &rhs)
Copy another ListIt.
#define UTL_CLASS_DECL_TPL(DC, T, BC)
Declaration of standard UTL++ functionality for a template class with one parameter.
Template version of List.
virtual void findFirstIt(const Object &key, BidIt &it, bool insert=false)
Find the first object matching the given key.
Root of UTL++ class hierarchy.
virtual void findLastIt(const Object &key, BidIt &it)
Find the last object matching the given key.