HomeHome

ClassesAnnotated - TreeFunctionsHomeStructure

QGVector Class Reference


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

#include <qgvector.h>

Inherits QCollection.

Inherited by QVector.

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


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:

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

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.


Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.


Copyright İ 2000 TrolltechTrademarks
Qt version 2.2.1