diff options
Diffstat (limited to 'doc/html/ntqdict.html')
| -rw-r--r-- | doc/html/ntqdict.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/ntqdict.html b/doc/html/ntqdict.html index f430efaa2..102ab0111 100644 --- a/doc/html/ntqdict.html +++ b/doc/html/ntqdict.html @@ -39,7 +39,7 @@ dictionary based on TQString keys. <p><a href="qdict-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> -<li class=fn><a href="#TQDict"><b>TQDict</b></a> ( int size = 17, bool caseSensitive = TRUE )</li> +<li class=fn><a href="#TQDict"><b>TQDict</b></a> ( int size = 17, bool caseSensitive = true )</li> <li class=fn><a href="#TQDict-2"><b>TQDict</b></a> ( const TQDict<type> & dict )</li> <li class=fn><a href="#~TQDict"><b>~TQDict</b></a> ()</li> <li class=fn>TQDict<type> & <a href="#operator-eq"><b>operator=</b></a> ( const TQDict<type> & dict )</li> @@ -95,11 +95,11 @@ changed with <a href="#resize">resize</a>(). Items are removed with <a href="#remove">remove</a>(). All the items in a dictionary can be removed with <a href="#clear">clear</a>(). The number of items in the dictionary is returned by <a href="#count">count</a>(). If the dictionary contains no items <a href="#isEmpty">isEmpty</a>() -returns TRUE. You can change an item's value with <a href="#replace">replace</a>(). Items +returns true. You can change an item's value with <a href="#replace">replace</a>(). Items are looked up with <a href="#operator[]">operator[]</a>(), or with <a href="#find">find</a>() which return a pointer to the value or 0 if the given key does not exist. You can take an item out of the dictionary with <a href="#take">take</a>(). -<p> Calling <a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>(TRUE) for a dictionary tells it to delete +<p> Calling <a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>(true) for a dictionary tells it to delete items that are removed. The default behaviour is not to delete items when they are removed. <p> When an item is inserted, the key is converted (hashed) to an @@ -152,7 +152,7 @@ dictionary. <pre> <a href="ntqstringlist.html">TQStringList</a> styleList = TQStyleFactory::styles(); styleList.<a href="ntqstringlist.html#sort">sort</a>(); - TQDict<int> letterDict( 17, FALSE ); + TQDict<int> letterDict( 17, false ); for ( TQStringList::Iterator it = styleList.<a href="ntqvaluelist.html#begin">begin</a>(); it != styleList.<a href="ntqvaluelist.html#end">end</a>(); ++it ) { <a href="ntqstring.html">TQString</a> styleName = *it; <a href="ntqstring.html">TQString</a> styleAccel = styleName; @@ -194,7 +194,7 @@ the accelerator and add it to the dictionary. Finally we create a <p> <p>See also <a href="qdictiterator.html">TQDictIterator</a>, <a href="ntqasciidict.html">TQAsciiDict</a>, <a href="ntqintdict.html">TQIntDict</a>, <a href="ntqptrdict.html">TQPtrDict</a>, <a href="collection.html">Collection Classes</a>, and <a href="tools.html">Non-GUI Classes</a>. <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQDict"></a>TQDict::TQDict ( int size = 17, bool caseSensitive = TRUE ) +<h3 class=fn><a name="TQDict"></a>TQDict::TQDict ( int size = 17, bool caseSensitive = true ) </h3> <p> Constructs a dictionary optimized for less than <em>size</em> entries. @@ -202,7 +202,7 @@ the accelerator and add it to the dictionary. Finally we create a (e.g. a prime that's slightly larger than the expected number of entries). This makes the hash distribution better which will lead to faster lookup. -<p> If <em>caseSensitive</em> is TRUE (the default), keys which differ only +<p> If <em>caseSensitive</em> is true (the default), keys which differ only by case are considered different. <h3 class=fn><a name="TQDict-2"></a>TQDict::TQDict ( const <a href="ntqdict.html">TQDict</a><type> & dict ) @@ -216,14 +216,14 @@ pointers are copied (shallow copy). </h3> <p> Removes all items from the dictionary and destroys it. If -<a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>() is TRUE, each value is deleted. All iterators that +<a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>() is true, each value is deleted. All iterators that access this dictionary will be reset. <p> <p>See also <a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>(). <h3 class=fn>bool <a name="autoDelete"></a>TQPtrCollection::autoDelete () const </h3> -<p> Returns the setting of the auto-delete option. The default is FALSE. +<p> Returns the setting of the auto-delete option. The default is false. <p> <p>See also <a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>(). <h3 class=fn>void <a name="clear"></a>TQDict::clear ()<tt> [virtual]</tt> @@ -265,8 +265,8 @@ item will be accessible using <a href="#operator[]">operator[]</a>(). <h3 class=fn>bool <a name="isEmpty"></a>TQDict::isEmpty () const </h3> -<p> Returns TRUE if the dictionary is empty, i.e. <a href="#count">count</a>() == 0; -otherwise returns FALSE. +<p> Returns true if the dictionary is empty, i.e. <a href="#count">count</a>() == 0; +otherwise returns false. <p> <p>See also <a href="#count">count</a>(). <h3 class=fn><a href="ntqdict.html">TQDict</a><type> & <a name="operator-eq"></a>TQDict::operator= ( const <a href="ntqdict.html">TQDict</a><type> & dict ) @@ -299,9 +299,9 @@ reference to the stream. <h3 class=fn>bool <a name="remove"></a>TQDict::remove ( const <a href="ntqstring.html">TQString</a> & key ) </h3> -<p> Removes the item with <em>key</em> from the dictionary. Returns TRUE if +<p> Removes the item with <em>key</em> from the dictionary. Returns true if successful, i.e. if the item is in the dictionary; otherwise -returns FALSE. +returns false. <p> If there are two or more items with equal keys, then the last item that was inserted will be removed. <p> The removed item is deleted if <a href="ntqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled. @@ -339,11 +339,11 @@ become invalid. </h3> <p> Sets the collection to auto-delete its contents if <em>enable</em> is -TRUE and to never delete them if <em>enable</em> is FALSE. +true and to never delete them if <em>enable</em> is false. <p> 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. -<p> The default setting is FALSE, for safety. If you turn it on, be +<p> The default setting is false, for safety. If you turn it on, be careful about copying the collection - you might find yourself with two collections deleting the same items. <p> Note that the auto-delete setting may also affect other functions |
