summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqptrdict.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 12:20:38 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 12:20:38 +0900
commit0881ed5059c46ce73e8241e6260b82b92f6d0e55 (patch)
tree6d1d4883cc07ad22b11017d0714d4c26e1ce1b94 /doc/man/man3/tqptrdict.3qt
parent1f0ce8533cc837aa2d4155b5fc17d2004bed0197 (diff)
downloadtqt3-0881ed5059c46ce73e8241e6260b82b92f6d0e55.tar.gz
tqt3-0881ed5059c46ce73e8241e6260b82b92f6d0e55.zip
Rename ptr nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqptrdict.3qt')
-rw-r--r--doc/man/man3/tqptrdict.3qt78
1 files changed, 39 insertions, 39 deletions
diff --git a/doc/man/man3/tqptrdict.3qt b/doc/man/man3/tqptrdict.3qt
index 8a8d1df7..2adccce2 100644
--- a/doc/man/man3/tqptrdict.3qt
+++ b/doc/man/man3/tqptrdict.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QPtrDict 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQPtrDict 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,25 +7,25 @@
.ad l
.nh
.SH NAME
-QPtrDict \- Template class that provides a dictionary based on void* keys
+TQPtrDict \- Template class that provides a dictionary based on void* keys
.SH SYNOPSIS
-\fC#include <ntqptrdict.h>\fR
+\fC#include <tqptrdict.h>\fR
.PP
-Inherits QPtrCollection.
+Inherits TQPtrCollection.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQPtrDict\fR ( int size = 17 )"
+.BI "\fBTQPtrDict\fR ( int size = 17 )"
.br
.ti -1c
-.BI "\fBQPtrDict\fR ( const QPtrDict<type> & dict )"
+.BI "\fBTQPtrDict\fR ( const TQPtrDict<type> & dict )"
.br
.ti -1c
-.BI "\fB~QPtrDict\fR ()"
+.BI "\fB~TQPtrDict\fR ()"
.br
.ti -1c
-.BI "QPtrDict<type> & \fBoperator=\fR ( const QPtrDict<type> & dict )"
+.BI "TQPtrDict<type> & \fBoperator=\fR ( const TQPtrDict<type> & dict )"
.br
.ti -1c
.BI "virtual uint \fBcount\fR () const"
@@ -76,16 +76,16 @@ Inherits QPtrCollection.
.SS "Protected Members"
.in +1c
.ti -1c
-.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )"
+.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )"
.br
.ti -1c
-.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item ) const"
+.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item ) const"
.br
.in -1c
.SH DESCRIPTION
-The QPtrDict class is a template class that provides a dictionary based on void* keys.
+The TQPtrDict class is a template class that provides a dictionary based on void* keys.
.PP
-QPtrDict is implemented as a template class. Define a template instance QPtrDict<X> to create a dictionary that operates on pointers to X (X*).
+TQPtrDict is implemented as a template class. Define a template instance TQPtrDict<X> to create a dictionary that operates on pointers to X (X*).
.PP
A dictionary is a collection of key-value pairs. The key is a void* used for insertion, removal and lookup. The value is a pointer. Dictionaries provide very fast insertion and lookup.
.PP
@@ -93,7 +93,7 @@ Example:
.PP
.nf
.br
- QPtrDict<char> fields; // void* keys, char* values
+ TQPtrDict<char> fields; // void* keys, char* values
.br
.br
QLineEdit *le1 = new QLineEdit( this );
@@ -116,7 +116,7 @@ Example:
fields.insert( le3, "Age" );
.br
.br
- QPtrDictIterator<char> it( fields );
+ TQPtrDictIterator<char> it( fields );
.br
for( ; it.current(); ++it )
.br
@@ -145,27 +145,27 @@ In this example we use a dictionary to add an extra property (a char*) to the li
.PP
See QDict for full details, including the choice of dictionary size, and how deletions are handled.
.PP
-See also QPtrDictIterator, QDict, QAsciiDict, QIntDict, Collection Classes, Collection Classes, and Non-GUI Classes.
+See also TQPtrDictIterator, QDict, QAsciiDict, QIntDict, Collection Classes, Collection Classes, and Non-GUI Classes.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QPtrDict::QPtrDict ( int size = 17 )"
+.SH "TQPtrDict::TQPtrDict ( int size = 17 )"
Constructs a dictionary using an internal hash array with the size \fIsize\fR.
.PP
Setting \fIsize\fR to a suitably large prime number (equal to or greater than the expected number of entries) makes the hash distribution better and improves lookup performance.
-.SH "QPtrDict::QPtrDict ( const QPtrDict<type> & dict )"
+.SH "TQPtrDict::TQPtrDict ( const TQPtrDict<type> & dict )"
Constructs a copy of \fIdict\fR.
.PP
Each item in \fIdict\fR is inserted into this dictionary. Only the pointers are copied (shallow copy).
-.SH "QPtrDict::~QPtrDict ()"
+.SH "TQPtrDict::~TQPtrDict ()"
Removes all items from the dictionary and destroys it.
.PP
All iterators that access this dictionary will be reset.
.PP
See also setAutoDelete().
-.SH "bool QPtrCollection::autoDelete () const"
+.SH "bool TQPtrCollection::autoDelete () const"
Returns the setting of the auto-delete option. The default is FALSE.
.PP
See also setAutoDelete().
-.SH "void QPtrDict::clear ()\fC [virtual]\fR"
+.SH "void TQPtrDict::clear ()\fC [virtual]\fR"
Removes all items from the dictionary.
.PP
The removed items are deleted if auto-deletion is enabled.
@@ -174,14 +174,14 @@ All dictionary iterators that access this dictionary will be reset.
.PP
See also remove(), take(), and setAutoDelete().
.PP
-Reimplemented from QPtrCollection.
-.SH "uint QPtrDict::count () const\fC [virtual]\fR"
+Reimplemented from TQPtrCollection.
+.SH "uint TQPtrDict::count () const\fC [virtual]\fR"
Returns the number of items in the dictionary.
.PP
See also isEmpty().
.PP
-Reimplemented from QPtrCollection.
-.SH "type * QPtrDict::find ( void * key ) const"
+Reimplemented from TQPtrCollection.
+.SH "type * TQPtrDict::find ( void * key ) const"
Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary.
.PP
If there are two or more items with equal keys, then the most recently inserted item will be found.
@@ -189,7 +189,7 @@ If there are two or more items with equal keys, then the most recently inserted
Equivalent to operator[].
.PP
See also operator[]().
-.SH "void QPtrDict::insert ( void * key, const type * item )"
+.SH "void TQPtrDict::insert ( void * key, const type * item )"
Inserts the \fIkey\fR with the \fIitem\fR into the dictionary.
.PP
Multiple items can have the same key, in which case only the last item will be accessible using operator[]().
@@ -197,15 +197,15 @@ Multiple items can have the same key, in which case only the last item will be a
\fIitem\fR may not be 0.
.PP
See also replace().
-.SH "bool QPtrDict::isEmpty () const"
+.SH "bool TQPtrDict::isEmpty () const"
Returns TRUE if the dictionary is empty; otherwise returns FALSE.
.PP
See also count().
-.SH "QPtrDict<type> & QPtrDict::operator= ( const QPtrDict<type> & dict )"
+.SH "TQPtrDict<type> & TQPtrDict::operator= ( const TQPtrDict<type> & dict )"
Assigns \fIdict\fR to this dictionary and returns a reference to this dictionary.
.PP
This dictionary is first cleared and then each item in \fIdict\fR is inserted into the dictionary. Only the pointers are copied (shallow copy), unless newItem() has been reimplemented.
-.SH "type * QPtrDict::operator[] ( void * key ) const"
+.SH "type * TQPtrDict::operator[] ( void * key ) const"
Returns the item associated with \fIkey\fR, or 0 if the key does not exist in the dictionary.
.PP
If there are two or more items with equal keys, then the most recently inserted item will be found.
@@ -213,13 +213,13 @@ If there are two or more items with equal keys, then the most recently inserted
Equivalent to the find() function.
.PP
See also find().
-.SH "QDataStream & QPtrDict::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR"
+.SH "QDataStream & TQPtrDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR"
Reads a dictionary item from the stream \fIs\fR and returns a reference to the stream.
.PP
The default implementation sets \fIitem\fR to 0.
.PP
See also write().
-.SH "bool QPtrDict::remove ( void * key )"
+.SH "bool TQPtrDict::remove ( void * key )"
Removes the item associated with \fIkey\fR from the dictionary. Returns TRUE if successful, i.e. if \fIkey\fR is in the dictionary; otherwise returns FALSE.
.PP
If there are two or more items with equal keys, then the most recently inserted item will be removed.
@@ -229,7 +229,7 @@ The removed item is deleted if auto-deletion is enabled.
All dictionary iterators that refer to the removed item will be set to point to the next item in the dictionary traversal order.
.PP
See also take(), clear(), and setAutoDelete().
-.SH "void QPtrDict::replace ( void * key, const type * item )"
+.SH "void TQPtrDict::replace ( void * key, const type * item )"
If the dictionary has key \fIkey\fR, this key's item is replaced with \fIitem\fR. If the dictionary doesn't contain key \fIkey\fR, \fIitem\fR is inserted into the dictionary using key \fIkey\fR.
.PP
\fIitem\fR may not be 0.
@@ -238,7 +238,7 @@ Equivalent to
.PP
.nf
.br
- QPtrDict<ItemType> dict;
+ TQPtrDict<ItemType> dict;
.br
...
.br
@@ -253,9 +253,9 @@ Equivalent to
If there are two or more items with equal keys, then the most recently inserted item will be replaced.
.PP
See also insert().
-.SH "void QPtrDict::resize ( uint newsize )"
+.SH "void TQPtrDict::resize ( uint newsize )"
Changes the size of the hash table to \fInewsize\fR. The contents of the dictionary are preserved, but all iterators on the dictionary become invalid.
-.SH "void QPtrCollection::setAutoDelete ( bool enable )"
+.SH "void TQPtrCollection::setAutoDelete ( bool enable )"
Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE.
.PP
If auto-deleting is turned on, all the items in a collection are deleted when the collection itself is deleted. This is convenient if the collection has the only pointer to the items.
@@ -268,13 +268,13 @@ See also autoDelete().
.PP
Examples:
.)l grapher/grapher.cpp, scribble/scribble.cpp, and table/bigtable/main.cpp.
-.SH "uint QPtrDict::size () const"
+.SH "uint TQPtrDict::size () const"
Returns the size of the internal hash table (as specified in the constructor).
.PP
See also count().
-.SH "void QPtrDict::statistics () const"
+.SH "void TQPtrDict::statistics () const"
Debugging-only function that prints out the dictionary distribution using tqDebug().
-.SH "type * QPtrDict::take ( void * key )"
+.SH "type * TQPtrDict::take ( void * key )"
Takes the item associated with \fIkey\fR out of the dictionary without deleting it (even if auto-deletion is enabled).
.PP
If there are two or more items with equal keys, then the most recently inserted item will be removed.
@@ -284,13 +284,13 @@ Returns a pointer to the item taken out, or 0 if the key does not exist in the d
All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary traversal order.
.PP
See also remove(), clear(), and setAutoDelete().
-.SH "QDataStream & QPtrDict::write ( QDataStream & s, QPtrCollection::Item ) const\fC [virtual protected]\fR"
+.SH "QDataStream & TQPtrDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR"
Writes a dictionary item to the stream \fIs\fR and returns a reference to the stream.
.PP
See also read().
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqptrdict.html
+.BR http://doc.trolltech.com/tqptrdict.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the