📄 qstrlist.3qt
字号:
.TH QStrList 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQStrList \- Doubly linked list of \fCchar*.\fR.SH SYNOPSIS.br.PP\fC#include <qstrlist.h>\fR.PPInherits QList..PPInherited by QStrIList..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQStrList\fR ( bool " "deepCopies" "=TRUE ) ".br.ti -1c.BI "\fBQStrList\fR ( const QStrList & ) ".br.ti -1c.BI "\fB~QStrList\fR () ".br.ti -1c.BI "QStrList& \fBoperator=\fR ( const QStrList & ) ".br.in -1c.SH DESCRIPTIONThe QStrList class provides a doubly linked list of \fCchar*.\fR.PPThis class is a QList<char> instance (a list of char*)..PPQStrList can make deep or shallow copies of the strings that are inserted..PPA deep copy means to allocate space for the string and then copy the string data into it. A shallow copy is just a copy of the pointer value and not the string data..PPThe disadvantage with shallow copies is that since a pointer can only be deleted once, the program must put all strings in a central place and know when it is safe to delete them (i.e. when the strings are no longer referenced by other parts of the program). This can make the program more complex. The advantage of shallow copies is that shallow copies consume far less memory than deep copies. It is also much faster to copy a pointer (typically 4 or 8 bytes) than to copy string data..PPA QStrList that operates on deep copies will by default turn on auto-deletion (see setAutoDelete()). Thus, by default, QStrList will deallocate any string copies it allocates..PPThe virtual compareItems() function is reimplemented and does a case sensitive string comparison. The inSort() function will insert strings in a sorted order..PPThe QStrListIterator class is an iterator for QStrList..SH MEMBER FUNCTION DOCUMENTATION.SH "QStrList::QStrList ( bool deepCopies=TRUE )"Constructs an empty list of strings. Will make deep copies of all inserted strings if \fIdeepCopies\fR is TRUE, or uses shallow copies if \fIdeepCopies\fR is FALSE..SH "QStrList::QStrList ( const QStrList & list )"Constructs a copy of \fIlist.\fR.PPIf \fIlist\fR has deep copies, this list will also get deep copies. Only the pointers are copied (shallow copy) if the other list does not use deep copies..SH "QStrList::~QStrList ()"Destroys the list. All strings are removed..SH "QStrList& QStrList::operator= ( const QStrList & list )"Assigns \fIlist\fR to this list and returns a reference to this list..PPIf \fIlist\fR has deep copies, this list will also get deep copies.Only the pointers are copied (shallow copy) if the other list does notuse deep copies..SH "SEE ALSO".BR http://doc.trolltech.com/qstrlist.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -