qglist.3qt

来自「tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件」· 3QT 代码 · 共 287 行

3QT
287
字号
.TH QGList 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQGList \- Internal class for implementing Qt collection classes.SH SYNOPSIS.br.PP\fC#include <qglist.h>\fR.PPInherits QCollection..PPInherited by QList, QQueue and QStack..PP.SS "Public Members".in +1c.ti -1c.BI "virtual uint \fBcount\fR () const".br.ti -1c.BI "QDataStream& \fBread\fR ( QDataStream & )".br.ti -1c.BI "QDataStream& \fBwrite\fR ( QDataStream & ) const".br.in -1c.SS "Protected Members".in +1c.ti -1c.BI "\fBQGList\fR ()".br.ti -1c.BI "\fBQGList\fR ( const QGList & )".br.ti -1c.BI "virtual \fB~QGList\fR ()".br.ti -1c.BI "QGList& \fBoperator=\fR ( const QGList & )".br.ti -1c.BI "void \fBinSort\fR ( QCollection::Item )".br.ti -1c.BI "void \fBappend\fR ( QCollection::Item )".br.ti -1c.BI "bool \fBinsertAt\fR ( uint " "index" ", QCollection::Item )".br.ti -1c.BI "void \fBrelinkNode\fR ( QLNode * )".br.ti -1c.BI "bool \fBremoveNode\fR ( QLNode * )".br.ti -1c.BI "bool \fBremove\fR ( QCollection::Item = 0 )".br.ti -1c.BI "bool \fBremoveRef\fR ( QCollection::Item = 0 )".br.ti -1c.BI "bool \fBremoveFirst\fR ()".br.ti -1c.BI "bool \fBremoveLast\fR ()".br.ti -1c.BI "bool \fBremoveAt\fR ( uint index )".br.ti -1c.BI "QCollection::Item \fBtakeNode\fR ( QLNode * )".br.ti -1c.BI "QCollection::Item \fBtake\fR ()".br.ti -1c.BI "QCollection::Item \fBtakeAt\fR ( uint index )".br.ti -1c.BI "QCollection::Item \fBtakeFirst\fR ()".br.ti -1c.BI "QCollection::Item \fBtakeLast\fR ()".br.ti -1c.BI "void \fBsort\fR ()".br.ti -1c.BI "virtual void \fBclear\fR ()".br.ti -1c.BI "int \fBfindRef\fR ( QCollection::Item, bool = TRUE )".br.ti -1c.BI "int \fBfind\fR ( QCollection::Item, bool = TRUE )".br.ti -1c.BI "uint \fBcontainsRef\fR ( QCollection::Item ) const".br.ti -1c.BI "uint \fBcontains\fR ( QCollection::Item ) const".br.ti -1c.BI "QCollection::Item \fBat\fR ( uint index )".br.ti -1c.BI "int \fBat\fR () const".br.ti -1c.BI "QLNode* \fBcurrentNode\fR () const".br.ti -1c.BI "QCollection::Item \fBget\fR () const".br.ti -1c.BI "QCollection::Item \fBcfirst\fR () const".br.ti -1c.BI "QCollection::Item \fBclast\fR () const".br.ti -1c.BI "QCollection::Item \fBfirst\fR ()".br.ti -1c.BI "QCollection::Item \fBlast\fR ()".br.ti -1c.BI "QCollection::Item \fBnext\fR ()".br.ti -1c.BI "QCollection::Item \fBprev\fR ()".br.ti -1c.BI "void \fBtoVector\fR ( QGVector * ) const".br.ti -1c.BI "virtual int \fBcompareItems\fR ( QCollection::Item, QCollection::Item )".br.ti -1c.BI "virtual QDataStream& \fBread\fR ( QDataStream &, QCollection::Item & )".br.ti -1c.BI "virtual QDataStream& \fBwrite\fR ( QDataStream &, QCollection::Item ) const".br.in -1c.SH DESCRIPTIONThe QGList class is an internal class for implementing Qt collection classes..PPQGList is a strictly internal class that acts as a base class for several collection classes; QList, QQueue and QStack..PPQGList has some virtual functions that can be reimplemented to customize the subclasses..TPcompareItems() compares two collection/list items..TPread() reads a collection/list item from a QDataStream..TPwrite() writes a collection/list item to a QDataStream. Normally, you do not have to reimplement any of these functions. If you still want to reimplement them, see the QStrList class (qstrlist.h), which is a good example..SH MEMBER FUNCTION DOCUMENTATION.SH "QGList::QGList () \fC[protected]\fR"For internal use only..SH "QGList::QGList ( const QGList & list ) \fC[protected]\fR"For internal use only..SH "QGList::~QGList () \fC[virtual protected]\fR"For internal use only..SH "void QGList::append ( QCollection::Item d ) \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::at( uint index ) \fC[protected]\fR"For internal use only..SH "int QGList::at () const \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::cfirst() const \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::clast() const \fC[protected]\fR"For internal use only..SH "void QGList::clear () \fC[virtual protected]\fR"For internal use only..PPReimplemented from QCollection..SH "int QGList::compareItems ( QCollection::Item item1, QCollection::Item item2 ) \fC[virtual protected]\fR"This virtual function compares two list items..PPReturns:.TP0 if \fIitem1\fR == \fIitem2\fR.TPnon-zero if \fIitem1\fR != \fIitem2\fR.PPThis function returns \fIint\fR rather than \fIbool\fR so that reimplementations can return three values and use it to sort by:.TP0 if \fIitem1\fR == \fIitem2\fR.TP> 0 (positive integer) if \fIitem1\fR > \fIitem2\fR.TP< 0 (negative integer) if \fIitem1\fR < \fIitem2\fR.PPThe QList::inSort() function requires that compareItems() is implemented as described here..PPThis function should not modify the list because some const functions call compareItems()..PPThe default implementation compares the pointers:.PP.nf.br.fi.SH "uint QGList::contains ( QCollection::Item d ) const \fC[protected]\fR"For internal use only..SH "uint QGList::containsRef ( QCollection::Item d ) const \fC[protected]\fR"For internal use only..SH "uint QGList::count () const \fC[virtual]\fR"For internal use only..PPReimplemented from QCollection..SH "QLNode * QGList::currentNode () const \fC[protected]\fR"For internal use only..SH "int QGList::find ( QCollection::Item d, bool fromStart = TRUE ) \fC[protected]\fR"For internal use only..SH "int QGList::findRef ( QCollection::Item d, bool fromStart = TRUE ) \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::first() \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::get() const \fC[protected]\fR"For internal use only..SH "void QGList::inSort ( QCollection::Item d ) \fC[protected]\fR"For internal use only..SH "bool QGList::insertAt ( uint index, QCollection::Item d ) \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::last() \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::next() \fC[protected]\fR"For internal use only..SH "QGList& QGList::operator= ( const QGList & list ) \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::prev() \fC[protected]\fR"For internal use only..SH "QDataStream & QGList::read ( QDataStream & s )"For internal use only..SH "QDataStream & QGList::read ( QDataStream & s, QCollection::Item & item ) \fC[virtual protected]\fR"Reads a collection/list item from the stream \fIs\fR and returns a reference to the stream..PPThe default implementation sets \fIitem\fR to 0..PPSee also: write()..SH "void QGList::relinkNode ( QLNode * n ) \fC[protected]\fR"For internal use only..SH "bool QGList::remove ( QCollection::Item d = 0 ) \fC[protected]\fR"For internal use only..SH "bool QGList::removeAt ( uint index ) \fC[protected]\fR"For internal use only..SH "bool QGList::removeFirst () \fC[protected]\fR"For internal use only..SH "bool QGList::removeLast () \fC[protected]\fR"For internal use only..SH "bool QGList::removeNode ( QLNode * n ) \fC[protected]\fR"For internal use only..SH "bool QGList::removeRef ( QCollection::Item d = 0 ) \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::take() \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::takeAt( uint index ) \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::takeFirst() \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::takeLast() \fC[protected]\fR"For internal use only..SH "QCollection::Item QGList::takeNode( QLNode * n ) \fC[protected]\fR"For internal use only..SH "void QGList::toVector ( QGVector * vector ) const \fC[protected]\fR"For internal use only..SH "QDataStream & QGList::write ( QDataStream & s ) const"For internal use only..SH "QDataStream & QGList::write ( QDataStream & s, QCollection::Item ) const \fC[virtual protected]\fR"Writes a collection/list item to the stream \fIs\fR and returns a reference to the stream..PPSee also:  read()..SH "SEE ALSO".BR http://www.troll.no/qt/qglist.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS.  See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?