Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference

QGVector Class Reference

The QGVector class is an internal class for implementing Qt collection classes. More...

#include <qgvector.h>

Inherits QCollection.

List of all member functions.

Public Members

Protected Members


Detailed Description

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.


Member Function Documentation

int QGVector::compareItems ( Item d1, Item d2 ) [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().

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

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


This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.2.0