summaryrefslogtreecommitdiffstats
path: root/doc/html/qt-template-lib.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qt-template-lib.html')
-rw-r--r--doc/html/qt-template-lib.html70
1 files changed, 35 insertions, 35 deletions
diff --git a/doc/html/qt-template-lib.html b/doc/html/qt-template-lib.html
index e5971533d..296778444 100644
--- a/doc/html/qt-template-lib.html
+++ b/doc/html/qt-template-lib.html
@@ -55,7 +55,7 @@ use <a href="ntqptrcollection.html">TQPtrCollection</a> and friends, all of whic
rather than values. This applies, for example, to all classes derived
from <a href="tqobject.html">TQObject</a>. A <a href="tqobject.html">TQObject</a> does not have a copy constructor, so using
it as value is impossible. You may choose to store pointers to
-TQObjects in a <a href="ntqvaluelist.html">TQValueList</a>, but using <a href="ntqptrlist.html">TQPtrList</a> directly seems to be the
+TQObjects in a <a href="tqvaluelist.html">TQValueList</a>, but using <a href="ntqptrlist.html">TQPtrList</a> directly seems to be the
better choice for this kind of application domain. TQPtrList, like all
other TQPtrCollection based containers, provides far more sanity
checking than a speed-optimized value based container.
@@ -171,13 +171,13 @@ your data's class.
<a name="2-3"></a><p> The tqCount() template function counts the number of occurrences of a
value within a container. For example:
<pre>
- <a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list;
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 2 );
+ <a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; list;
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 1 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 1 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 1 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 2 );
int c = 0;
- tqCount( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), 1, c ); // c == 3
+ tqCount( list.<a href="tqvaluelist.html#begin">begin</a>(), list.<a href="tqvaluelist.html#end">end</a>(), 1, c ); // c == 3
</pre>
<p> <a name="qFind"></a>
@@ -186,12 +186,12 @@ value within a container. For example:
<a name="2-4"></a><p> The tqFind() template function finds the first occurrence of a value
within a container. For example:
<pre>
- <a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list;
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 2 );
- <a href="qvaluelistiterator.html">TQValueListIterator</a>&lt;int&gt; it = tqFind( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), 2 );
+ <a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; list;
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 1 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 1 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 1 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 2 );
+ <a href="tqvaluelistiterator.html">TQValueListIterator</a>&lt;int&gt; it = tqFind( list.<a href="tqvaluelist.html#begin">begin</a>(), list.<a href="tqvaluelist.html#end">end</a>(), 2 );
</pre>
<p> <a name="qFill"></a>
@@ -200,8 +200,8 @@ within a container. For example:
<a name="2-5"></a><p> The tqFill() template function fills a range with copies of a value.
For example:
<pre>
- <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3);
- tqFill( vec.<a href="ntqvaluevector.html#begin">begin</a>(), vec.<a href="ntqvaluevector.html#end">end</a>(), 99 ); // vec contains 99, 99, 99
+ <a href="tqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3);
+ tqFill( vec.<a href="tqvaluevector.html#begin">begin</a>(), vec.<a href="tqvaluevector.html#end">end</a>(), 99 ); // vec contains 99, 99, 99
</pre>
<p> <a name="qEqual"></a>
@@ -213,19 +213,19 @@ considered, only if the elements in the first range are equal to the
corresponding elements in the second range (consequently, both ranges
must be valid). For example:
<pre>
- <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; v1(3);
+ <a href="tqvaluevector.html">TQValueVector</a>&lt;int&gt; v1(3);
v1[0] = 1;
v1[2] = 2;
v1[3] = 3;
- <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; v2(5);
+ <a href="tqvaluevector.html">TQValueVector</a>&lt;int&gt; v2(5);
v2[0] = 1;
v2[2] = 2;
v2[3] = 3;
v2[4] = 4;
v2[5] = 5;
- bool b = tqEqual( v1.<a href="ntqvaluevector.html#begin">begin</a>(), v2.<a href="ntqvaluevector.html#end">end</a>(), v2.<a href="ntqvaluevector.html#begin">begin</a>() );
+ bool b = tqEqual( v1.<a href="tqvaluevector.html#begin">begin</a>(), v2.<a href="tqvaluevector.html#end">end</a>(), v2.<a href="tqvaluevector.html#begin">begin</a>() );
// b == TRUE
</pre>
@@ -235,12 +235,12 @@ must be valid). For example:
<a name="2-7"></a><p> The tqCopy() template function copies a range of elements to an
OutputIterator, in this case a TQTextOStreamIterator:
<pre>
- <a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list;
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 100 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 200 );
- list.<a href="ntqvaluelist.html#push_back">push_back</a>( 300 );
+ <a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; list;
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 100 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 200 );
+ list.<a href="tqvaluelist.html#push_back">push_back</a>( 300 );
<a href="qtextostream.html">TQTextOStream</a> str( stdout );
- tqCopy( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), TQTextOStreamIterator(str) );
+ tqCopy( list.<a href="tqvaluelist.html#begin">begin</a>(), list.<a href="tqvaluelist.html#end">end</a>(), TQTextOStreamIterator(str) );
</pre>
<p>
@@ -250,12 +250,12 @@ OutputIterator, in this case a TQTextOStreamIterator:
<a name="2-8"></a><p> The tqCopyBackward() template function copies a container or a slice of
a container to an OutputIterator, but in reverse order, for example:
<pre>
- <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3);
- vec.<a href="ntqvaluevector.html#push_back">push_back</a>( 100 );
- vec.<a href="ntqvaluevector.html#push_back">push_back</a>( 200 );
- vec.<a href="ntqvaluevector.html#push_back">push_back</a>( 300 );
- <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; another;
- tqCopyBackward( vec.<a href="ntqvaluevector.html#begin">begin</a>(), vec.<a href="ntqvaluevector.html#end">end</a>(), another.<a href="ntqvaluevector.html#begin">begin</a>() );
+ <a href="tqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3);
+ vec.<a href="tqvaluevector.html#push_back">push_back</a>( 100 );
+ vec.<a href="tqvaluevector.html#push_back">push_back</a>( 200 );
+ vec.<a href="tqvaluevector.html#push_back">push_back</a>( 300 );
+ <a href="tqvaluevector.html">TQValueVector</a>&lt;int&gt; another;
+ tqCopyBackward( vec.<a href="tqvaluevector.html#begin">begin</a>(), vec.<a href="tqvaluevector.html#end">end</a>(), another.<a href="tqvaluevector.html#begin">begin</a>() );
// 'another' now contains 100, 200, 300
// however the elements are copied one at a time
// in reverse order (300, 200, then 100)
@@ -271,10 +271,10 @@ illustrates this:
<a href="ntqstringlist.html">TQStringList</a> list1, list2;
list1 &lt;&lt; "Weis" &lt;&lt; "Ettrich" &lt;&lt; "Arnt" &lt;&lt; "Sue";
list2 &lt;&lt; "Torben" &lt;&lt; "Matthias";
- tqCopy( list2.begin(), list2.end(), list1.<a href="ntqvaluelist.html#begin">begin</a>() );
+ tqCopy( list2.begin(), list2.end(), list1.<a href="tqvaluelist.html#begin">begin</a>() );
- <a href="ntqvaluevector.html">TQValueVector</a>&lt;TQString&gt; vec( list1.<a href="ntqvaluelist.html#size">size</a>(), "Dave" );
- tqCopy( list2.begin(), list2.end(), vec.<a href="ntqvaluevector.html#begin">begin</a>() );
+ <a href="tqvaluevector.html">TQValueVector</a>&lt;TQString&gt; vec( list1.<a href="tqvaluelist.html#size">size</a>(), "Dave" );
+ tqCopy( list2.begin(), list2.end(), vec.<a href="tqvaluevector.html#begin">begin</a>() );
</pre>
<p> At the end of this code fragment, the list list1 contains "Torben",
@@ -297,18 +297,18 @@ a standard C++ array with tqCopy():
appropriate streaming operators. Here is an example.
<p> <pre>
<a href="ntqdatastream.html">TQDataStream</a> str(...);
- <a href="ntqvaluelist.html">TQValueList</a>&lt;TQRect&gt; list;
+ <a href="tqvaluelist.html">TQValueList</a>&lt;TQRect&gt; list;
// ... fill the list here
str &lt;&lt; list;
</pre>
<p> The container can be read in again with:
<p> <pre>
- <a href="ntqvaluelist.html">TQValueList</a>&lt;TQRect&gt; list;
+ <a href="tqvaluelist.html">TQValueList</a>&lt;TQRect&gt; list;
str &gt;&gt; list;
</pre>
-<p> The same applies to <a href="ntqstringlist.html">TQStringList</a>, <a href="ntqvaluestack.html">TQValueStack</a> and <a href="ntqmap.html">TQMap</a>.
+<p> The same applies to <a href="ntqstringlist.html">TQStringList</a>, <a href="tqvaluestack.html">TQValueStack</a> and <a href="tqmap.html">TQMap</a>.
<!-- eof -->
<p><address><hr><div align=center>