summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmap.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqmap.3qt')
-rw-r--r--doc/man/man3/tqmap.3qt34
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/man/man3/tqmap.3qt b/doc/man/man3/tqmap.3qt
index f376eb86..e7d208fd 100644
--- a/doc/man/man3/tqmap.3qt
+++ b/doc/man/man3/tqmap.3qt
@@ -20,7 +20,7 @@ QMap \- Value-based template class that provides a dictionary
.BI "typedef T \fBmapped_type\fR"
.br
.ti -1c
-.BI "typedef QPair<const key_type, mapped_type> \fBvalue_type\fR"
+.BI "typedef TQPair<const key_type, mapped_type> \fBvalue_type\fR"
.br
.ti -1c
.BI "typedef value_type * \fBpointer\fR"
@@ -44,7 +44,7 @@ QMap \- Value-based template class that provides a dictionary
.BI "typedef QMapConstIterator<Key, T> \fBconst_iterator\fR"
.br
.ti -1c
-.BI "typedef QPair<iterator, bool> \fBinsert_pair\fR"
+.BI "typedef TQPair<iterator, bool> \fBinsert_pair\fR"
.br
.ti -1c
.BI "typedef QMapIterator<Key, T> \fBIterator\fR"
@@ -101,7 +101,7 @@ QMap \- Value-based template class that provides a dictionary
.BI "bool \fBempty\fR () const"
.br
.ti -1c
-.BI "QPair<iterator, bool> \fBinsert\fR ( const value_type & x )"
+.BI "TQPair<iterator, bool> \fBinsert\fR ( const value_type & x )"
.br
.ti -1c
.BI "void \fBerase\fR ( iterator it )"
@@ -176,7 +176,7 @@ QMap<Key, Data> defines a template instance to create a dictionary with keys of
.PP
QMap contains and manages a collection of objects of type Data with associated key values of type Key and provides iterators that allow the contained objects to be addressed. QMap owns the contained items.
.PP
-Some classes cannot be used within a QMap. For example everything derived from QObject and thus all classes that implement widgets. Only values can be used in a QMap. To qualify as a value, the class must provide
+Some classes cannot be used within a QMap. For example everything derived from TQObject and thus all classes that implement widgets. Only values can be used in a QMap. To qualify as a value, the class must provide
.TP
A copy constructor
.TP
@@ -209,16 +209,16 @@ Example:
.br
Employee(): sn(0) {}
.br
- Employee( const QString& forename, const QString& surname, int salary )
+ Employee( const TQString& forename, const TQString& surname, int salary )
.br
: fn(forename), sn(surname), sal(salary)
.br
{ }
.br
.br
- QString forename() const { return fn; }
+ TQString forename() const { return fn; }
.br
- QString surname() const { return sn; }
+ TQString surname() const { return sn; }
.br
int salary() const { return sal; }
.br
@@ -227,9 +227,9 @@ Example:
.br
private:
.br
- QString fn;
+ TQString fn;
.br
- QString sn;
+ TQString sn;
.br
int sal;
.br
@@ -243,7 +243,7 @@ Example:
QApplication app( argc, argv );
.br
.br
- typedef QMap<QString, Employee> EmployeeMap;
+ typedef QMap<TQString, Employee> EmployeeMap;
.br
EmployeeMap map;
.br
@@ -308,7 +308,7 @@ Another approach uses the operator[]. But be warned: if the map does not contain
.PP
.nf
.br
- QMap<QString,QString> map;
+ QMap<TQString,TQString> map;
.br
map["Clinton"] = "Bill";
.br
@@ -330,7 +330,7 @@ There are a couple of ways of inserting new items into the map. One uses the ins
.PP
.nf
.br
- QMap<QString, QString> map;
+ QMap<TQString, TQString> map;
.br
map["Clinton"] = "Bill";
.br
@@ -347,7 +347,7 @@ The map's const iterator type, TQt style.
.SH "QMap::Iterator"
The map's iterator type, TQt style.
.SH "QMap::ValueType"
-Corresponds to QPair<key_type, mapped_type>, TQt style.
+Corresponds to TQPair<key_type, mapped_type>, TQt style.
.SH "QMap::const_iterator"
The map's const iterator type.
.SH "QMap::const_pointer"
@@ -367,7 +367,7 @@ Reference to value_type.
.SH "QMap::size_type"
An unsigned integral type, used to represent various sizes.
.SH "QMap::value_type"
-Corresponds to QPair<key_type, mapped_type>.
+Corresponds to TQPair<key_type, mapped_type>.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QMap::QMap ()"
Constructs an empty map.
@@ -459,10 +459,10 @@ Returns end() if no key matched.
See also QMapConstIterator.
.SH "iterator QMap::insert ( const Key & key, const T & value, bool overwrite = TRUE )"
Inserts a new item with the key, \fIkey\fR, and a value of \fIvalue\fR. If there is already an item whose key is \fIkey\fR, that item's value is replaced with \fIvalue\fR, unless \fIoverwrite\fR is FALSE (it is TRUE by default). In this case an iterator to this item is returned, else an iterator to the new item is returned.
-.SH "QPair<iterator, bool> QMap::insert ( const value_type & x )"
+.SH "TQPair<iterator, bool> QMap::insert ( const value_type & x )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Inserts the (key, value) pair \fIx\fR into the map. \fIx\fR is a QPair whose \fCfirst\fR element is a key to be inserted and whose \fCsecond\fR element is the associated value to be inserted. Returns a pair whose \fCfirst\fR element is an iterator pointing to the inserted item and whose \fCsecond\fR element is a bool indicating TRUE if \fIx\fR was inserted and FALSE if it was not inserted, e.g. because it was already present.
+Inserts the (key, value) pair \fIx\fR into the map. \fIx\fR is a TQPair whose \fCfirst\fR element is a key to be inserted and whose \fCsecond\fR element is the associated value to be inserted. Returns a pair whose \fCfirst\fR element is an iterator pointing to the inserted item and whose \fCsecond\fR element is a bool indicating TRUE if \fIx\fR was inserted and FALSE if it was not inserted, e.g. because it was already present.
.PP
See also replace().
.SH "bool QMap::isEmpty () const"
@@ -488,7 +488,7 @@ You can use this operator both for reading and writing:
.PP
.nf
.br
- QMap<QString, QString> map;
+ QMap<TQString, TQString> map;
.br
map["Clinton"] = "Bill";
.br