#include <qstrvec.h>
Public Member Functions | |
QStrIVec () | |
QStrIVec (uint size, bool dc=TRUE) | |
~QStrIVec () | |
![]() | |
QStrVec () | |
QStrVec (uint size, bool deepc=TRUE) | |
~QStrVec () | |
![]() | |
QVector () | |
QVector (uint size) | |
QVector (const QVector< type > &v) | |
~QVector () | |
QVector< type > & | operator= (const QVector< type > &v) |
type ** | data () const |
uint | size () const |
uint | count () const |
bool | isEmpty () const |
bool | isNull () const |
bool | resize (uint size) |
bool | insert (uint i, const type *d) |
bool | remove (uint i) |
type * | take (uint i) |
void | clear () |
bool | fill (const type *d, int size=-1) |
void | sort () |
int | bsearch (const type *d) const |
int | findRef (const type *d, uint i=0) const |
int | find (const type *d, uint i=0) const |
uint | containsRef (const type *d) const |
uint | contains (const type *d) const |
type * | operator[] (int i) const |
type * | at (uint i) const |
void | toList (QGList *list) const |
![]() | |
QDataStream & | read (QDataStream &) |
QDataStream & | write (QDataStream &) const |
![]() | |
bool | autoDelete () const |
void | setAutoDelete (bool enable) |
Private Member Functions | |
int | compareItems (Item s1, Item s2) |
Additional Inherited Members | |
![]() | |
typedef void * | Item |
![]() | |
QGVector () | |
QGVector (uint size) | |
QGVector (const QGVector &v) | |
~QGVector () | |
QGVector & | operator= (const QGVector &v) |
Item * | data () const |
uint | size () const |
bool | insert (uint index, Item) |
bool | remove (uint index) |
Item | take (uint index) |
bool | resize (uint newsize) |
bool | fill (Item, int flen) |
void | sort () |
int | bsearch (Item) const |
int | findRef (Item, uint index) const |
int | find (Item, uint index) const |
uint | containsRef (Item) const |
uint | contains (Item) const |
Item | at (uint index) const |
bool | insertExpand (uint index, Item) |
void | toList (QGList *) const |
![]() | |
QCollection () | |
QCollection (const QCollection &) | |
virtual | ~QCollection () |
![]() | |
bool | del_item |
This virtual function compares two list items.
Returns:
This function returns int rather than bool so that reimplementations can return one of three values and use it to sort by:
The QVector::sort() and QVector::bsearch() functions require that compareItems() is implemented as described here.
This function should not modify the vector because some const functions call compareItems().
Reimplemented from QStrVec.
Definition at line 84 of file qstrvec.h.