#include <qstrlist.h>
Public Member Functions | |
QStrList (bool deepCopies=TRUE) | |
QStrList (const QStrList &) | |
~QStrList () | |
QStrList & | operator= (const QStrList &) |
Public Member Functions inherited from QInternalList< type > | |
QInternalList () | |
QInternalList (const QInternalList< type > &l) | |
~QInternalList () | |
QInternalList< type > & | operator= (const QInternalList< type > &l) |
bool | operator== (const QInternalList< 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 () |
bool | remove (const type *d) |
bool | removeRef (const type *d) |
void | removeNode (QLNode *n) |
bool | removeFirst () |
bool | removeLast () |
type * | take (uint i) |
type * | take () |
type * | takeNode (QLNode *n) |
void | clear () |
void | sort () |
int | find (const type *d) |
int | findNext (const type *d) |
int | findRef (const type *d) |
int | findNextRef (const type *d) |
uint | contains (const type *d) const |
uint | containsRef (const type *d) const |
type * | at (uint i) |
int | at () const |
type * | current () const |
QLNode * | currentNode () const |
type * | getFirst () const |
type * | getLast () const |
type * | first () |
type * | last () |
type * | next () |
type * | prev () |
void | toVector (QGVector *vec) const |
Public Member Functions inherited from QGList | |
QDataStream & | read (QDataStream &) |
QDataStream & | write (QDataStream &) const |
Public Member Functions inherited from QCollection | |
bool | autoDelete () const |
void | setAutoDelete (bool enable) |
Private Member Functions | |
QCollection::Item | newItem (QCollection::Item d) |
void | deleteItem (QCollection::Item d) |
int | compareItems (QCollection::Item s1, QCollection::Item s2) |
QDataStream & | read (QDataStream &s, QCollection::Item &d) |
QDataStream & | write (QDataStream &s, QCollection::Item d) const |
Private Attributes | |
bool | dc |
Definition at line 57 of file qstrlist.h.
Definition at line 60 of file qstrlist.h.
|
inline |
Definition at line 101 of file qstrlist.h.
|
inline |
Definition at line 62 of file qstrlist.h.
|
inlineprivatevirtual |
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 QGList.
Reimplemented in QStrIList.
Definition at line 68 of file qstrlist.h.
|
inlineprivatevirtual |
Virtual function that deletes an item that is about to be removed from the collection.
The default implementation deletes d pointer if and only if auto-delete has been enabled.
This function is always reimplemented in the collection template classes.
Reimplemented from QInternalList< type >.
Definition at line 67 of file qstrlist.h.
|
inlineprivatevirtual |
Virtual function that creates a copy of an object that is about to be inserted into the collection.
The default implementation returns the d pointer, i.e. no copy is made.
This function is seldom reimplemented in the collection template classes. It is not common practice to make a copy of something that is being inserted.
Reimplemented from QCollection.
Definition at line 66 of file qstrlist.h.
Definition at line 92 of file qstrlist.h.
|
inlineprivatevirtual |
Reads a collection/list item from the stream s and returns a reference to the stream.
The default implementation sets item to 0.
Reimplemented from QGList.
Definition at line 71 of file qstrlist.h.
|
inlineprivatevirtual |
Writes a collection/list item to the stream s and returns a reference to the stream.
The default implementation does nothing.
Reimplemented from QGList.
Definition at line 73 of file qstrlist.h.
|
private |
Definition at line 76 of file qstrlist.h.