QGVector(3qt)

QGVector3qt

Internal class for implementing qt collection classes #include <qgvector.h> inherits qcollection. inherited by qvector.

Overview

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 customize behavior.

compareItems() compares two collection/vector items.
read() reads a collection/vector item from a QDataStream.
write() writes a collection/vector item to a QDataStream.

Member function documentation

Item QGVector::at ( uint index ) const [protected]

For internal use only.

int QGVector::compareItems ( Item d1, Item d2 ) [virtual]

This virtual function compares two list items.

Returns:

0 if item1 == item2
non-zero if item1 != item2

This function returns int rather than bool so that reimplementations can return one of three values and use it to sort by:

0 if item1 == item2
> 0 (positive integer) if item1 > item2
< 0 (negative integer) if item1 < item2

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().

uint QGVector::count () const [virtual protected]

For internal use only.

Reimplemented from QCollection.

Item * QGVector::data () const [protected]

For internal use only.

QDataStream & QGVector::read ( QDataStream & s, Item & d ) [virtual protected]

Reads a collection/vector item from the stream s and returns a reference to the stream.

The default implementation sets item to 0.

See also write().

uint QGVector::size () const [protected]

For internal use only.

QDataStream & QGVector::write ( QDataStream & s, Item ) const [virtual protected]

Writes a collection/vector item to the stream s and returns a reference to the stream.

The default implementation does nothing.

See also read().

QGVector::QGVector () [protected]

For internal use only.

QGVector::QGVector ( const QGVector & a ) [protected]

For internal use only.

QGVector::QGVector ( uint size ) [protected]

For internal use only.

QGVector::~QGVector () [protected]

For internal use only.

int QGVector::bsearch ( Item d ) const [protected]

For internal use only.

void QGVector::clear () [virtual protected]

For internal use only.

Reimplemented from QCollection.

uint QGVector::contains ( Item d ) const [protected]

For internal use only.

uint QGVector::containsRef ( Item d ) const [protected]

For internal use only.

bool QGVector::fill ( Item d, int flen ) [protected]

For internal use only.

int QGVector::find ( Item d, uint index ) const [protected]

For internal use only.

int QGVector::findRef ( Item d, uint index ) const [protected]

For internal use only.

bool QGVector::insert ( uint index, Item d ) [protected]

For internal use only.

bool QGVector::insertExpand ( uint index, Item d ) [protected]

For internal use only.

QGVector& QGVector::operator= ( const QGVector & v ) [protected]

For internal use only.

QDataStream & QGVector::read ( QDataStream & s )

For internal use only.

bool QGVector::remove ( uint index ) [protected]

For internal use only.

bool QGVector::resize ( uint newsize ) [protected]

For internal use only.

void QGVector::sort () [protected]

For internal use only.

void QGVector::toList ( QGList * list ) const [protected]

For internal use only.

QDataStream & QGVector::write ( QDataStream & s ) const

For internal use only.

Author

Generated automatically from the source code.

Bugs

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to [email protected]. Please include the name of the manual page (qgvector.3qt) and the Qt version (2.3.1).

From qt-doc 3:2.3.1-22 in Debian 3.0 (Woody). Also shipped by qt-emb-doc. Parsed by carta from the page's man source.