53 template <
class T>
class List 56 #ifndef DO_NOT_DOCUMENT 57 typedef typename std::list<T>::iterator
Iterator;
89 ConstIterator
begin()
const;
101 ConstIterator
end()
const;
106 Iterator
insert(Iterator it,
const T &value);
152 unsigned int size()
const;
164 Iterator
find(
const T &value);
169 ConstIterator
find(
const T &value)
const;
174 bool contains(
const T &value)
const;
179 Iterator
erase(Iterator it);
184 const T &
front()
const;
194 const T &
back()
const;
252 #ifndef DO_NOT_DOCUMENT 253 template <
class TP>
class ListPrivate;
List< T > & append(const T &item)
Appends item to the end of the list and returns a reference to the list.
std::list< T >::iterator Iterator
Definition: tlist.h:57
Iterator begin()
Returns an STL style iterator to the beginning of the list.
Iterator end()
Returns an STL style iterator to the end of the list.
A generic, implicitly shared list.
Definition: tlist.h:53
void setAutoDelete(bool autoDelete)
Auto delete the members of the list when the last reference to the list passes out of scope...
List< T > & sortedInsert(const T &value, bool unique=false)
Inserts the value into the list.
T & operator[](unsigned int i)
Returns a reference to item i in the list.
const T & back() const
Returns a reference to the last item in the list.
Iterator erase(Iterator it)
Erase the item at it from the list.
bool isEmpty() const
Returns whether or not the list is empty.
List< T > & prepend(const T &item)
Prepends item to the beginning list and returns a reference to the list.
bool operator==(const List< T > &l) const
Compares this list with l and returns true if all of the elements are the same.
List< T > & operator=(const List< T > &l)
Make a shallow, implicitly shared, copy of l.
List()
Constructs an empty list.
bool operator!=(const List< T > &l) const
Compares this list with l and returns true if the lists differ.
A namespace for all TagLib related classes and functions.
Definition: aifffile.h:33
bool contains(const T &value) const
Returns true if the list contains value.
List< T > & clear()
Clears the list.
const T & front() const
Returns a reference to the first item in the list.
std::list< T >::const_iterator ConstIterator
Definition: tlist.h:58
Iterator find(const T &value)
Find the first occurrence of value.
Iterator insert(Iterator it, const T &value)
Inserts a copy of value before it.
virtual ~List()
Destroys this List instance.
unsigned int size() const
Returns the number of elements in the list.