|
ISLEman
|
The QGVector class is an internal class for implementing Qt collection classes. More...
#include <qgvector.h>
Public Member Functions | |
| QDataStream & | read (QDataStream &) |
| QDataStream & | write (QDataStream &) const |
| virtual int | compareItems (Item, Item) |
Public Member Functions inherited from QCollection | |
| bool | autoDelete () const |
| void | setAutoDelete (bool enable) |
Protected Member Functions | |
| QGVector (uint size) | |
| QGVector (const QGVector &v) | |
| QGVector & | operator= (const QGVector &v) |
| Item * | data () const |
| uint | size () const |
| uint | count () const |
| bool | insert (uint index, Item) |
| bool | remove (uint index) |
| Item | take (uint index) |
| void | clear () |
| 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 |
| virtual QDataStream & | read (QDataStream &, Item &) |
| virtual QDataStream & | write (QDataStream &, Item) const |
Protected Member Functions inherited from QCollection | |
| QCollection () | |
| QCollection (const QCollection &) | |
| virtual | ~QCollection () |
| virtual Item | newItem (Item) |
| virtual void | deleteItem (Item) |
Friends | |
| class | QGList |
Additional Inherited Members | |
Public Types inherited from QCollection | |
| typedef void * | Item |
Protected Attributes inherited from QCollection | |
| bool | del_item |
The QGVector class is an internal class for implementing Qt collection classes.
QGVector is a strictly internal class that acts as a base class for the QVector collection class.
QGVector has some virtual functions that may be reimplemented in subclasses to to customize behavior.
|
protectedvirtual |
Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.
Implements QCollection.
Reimplemented in QVector< type >, and QVector< QList< IndexWord > >.
|
virtual |
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().
|
inlineprotectedvirtual |
Returns the number of objects in the collection.
Implements QCollection.
Reimplemented in QVector< type >, and QVector< QList< IndexWord > >.
|
protectedvirtual |
Reads a collection/vector item from the stream s and returns a reference to the stream.
The default implementation sets item to 0.
|
protectedvirtual |
Writes a collection/vector item to the stream s and returns a reference to the stream.
The default implementation does nothing.
1.8.12