#include <qsortedlist.h>
Public Member Functions | |
QSortedList () | |
QSortedList (const QSortedList< type > &l) | |
~QSortedList () | |
QSortedList< type > & | operator= (const QSortedList< type > &l) |
virtual int | compareItems (QCollection::Item s1, QCollection::Item s2) |
Public Member Functions inherited from QList< type > | |
QList () | |
QList (const QList< type > &l) | |
~QList () | |
QList< type > & | operator= (const QList< type > &l) |
bool | operator== (const QList< type > &list) const |
uint | count () const |
bool | isEmpty () const |
bool | insert (uint i, const type *d) |
void | inSort (const type *d) |
void | prepend (const type *d) |
void | append (const type *d) |
bool | remove (uint i) |
bool | remove (const type *d) |
bool | removeRef (const type *d) |
bool | removeFirst () |
bool | removeLast () |
type * | take (uint i) |
void | clear () |
void | sort () |
int | find (const type *d) const |
int | findRef (const type *d) const |
uint | contains (const type *d) const |
uint | containsRef (const type *d) const |
type * | at (uint i) const |
type * | getFirst () const |
type * | getLast () const |
void | setAutoDelete (bool enable) |
Definition at line 46 of file qsortedlist.h.
|
inline |
Definition at line 49 of file qsortedlist.h.
|
inline |
Definition at line 50 of file qsortedlist.h.
|
inline |
Definition at line 51 of file qsortedlist.h.
|
inlinevirtual |
This virtual function compares two list items.
Returns:
This function returns int rather than bool so that reimplementations can return three values and use it to sort by:
The QList::inSort() function requires that compareItems() is implemented as described here.
This function should not modify the list because some const functions call compareItems().
The default implementation compares the pointers:
Reimplemented from QList< type >.
Definition at line 55 of file qsortedlist.h.
|
inline |
Definition at line 52 of file qsortedlist.h.