diff options
Diffstat (limited to 'doc/html/ntqasciicache.html')
-rw-r--r-- | doc/html/ntqasciicache.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/ntqasciicache.html b/doc/html/ntqasciicache.html index 13df1f01c..0c71987ba 100644 --- a/doc/html/ntqasciicache.html +++ b/doc/html/ntqasciicache.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p>The TQAsciiCache class is a template class that provides a cache based on char* keys. <a href="#details">More...</a> <p><tt>#include <<a href="qasciicache-h.html">ntqasciicache.h</a>></tt> -<p>Inherits <a href="ntqptrcollection.html">TQPtrCollection</a>. +<p>Inherits <a href="tqptrcollection.html">TQPtrCollection</a>. <p><a href="qasciicache-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> @@ -76,17 +76,17 @@ the least recently used items in the cache are removed. item, returns it, and by default marks it as being the most recently used item. <p> There are also methods to <a href="#remove">remove</a>() or <a href="#take">take</a>() an object from the -cache. Calling <a href="ntqptrcollection.html#setAutoDelete">setAutoDelete(TRUE)</a> tells the cache to delete items that +cache. Calling <a href="tqptrcollection.html#setAutoDelete">setAutoDelete(TRUE)</a> tells the cache to delete items that are removed. The default is to not delete items when then are removed (i.e., remove() and take() are equivalent). <p> When inserting an item into the cache, only the pointer is copied, not the item itself. This is called a <a href="shclass.html#shallow-copy">shallow copy</a>. It is possible to make the cache copy all of the item's data (known as a <a href="shclass.html#deep-copy">deep copy</a>) when an item is inserted. insert() calls the virtual -function <a href="ntqptrcollection.html#newItem">TQPtrCollection::newItem</a>() for the item to be inserted. -Inherit a cache and reimplement <a href="ntqptrcollection.html#newItem">newItem</a>() if you want deep copies. +function <a href="tqptrcollection.html#newItem">TQPtrCollection::newItem</a>() for the item to be inserted. +Inherit a cache and reimplement <a href="tqptrcollection.html#newItem">newItem</a>() if you want deep copies. <p> When removing a cache item the virtual function -<a href="ntqptrcollection.html#deleteItem">TQPtrCollection::deleteItem</a>() is called. Its default implementation -in TQAsciiCache is to delete the item if <a href="ntqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled. +<a href="tqptrcollection.html#deleteItem">TQPtrCollection::deleteItem</a>() is called. Its default implementation +in TQAsciiCache is to delete the item if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled. <p> There is a <a href="qasciicacheiterator.html">TQAsciiCacheIterator</a> which may be used to traverse the items in the cache in arbitrary order. <p> <p>See also <a href="qasciicacheiterator.html">TQAsciiCacheIterator</a>, <a href="ntqcache.html">TQCache</a>, <a href="ntqintcache.html">TQIntCache</a>, <a href="collection.html">Collection Classes</a>, and <a href="tools.html">Non-GUI Classes</a>. @@ -122,19 +122,19 @@ All iterators that access this cache will be reset. <h3 class=fn>void <a name="clear"></a>TQAsciiCache::clear ()<tt> [virtual]</tt> </h3> -<p> Removes all items from the cache, and deletes them if <a href="ntqptrcollection.html#setAutoDelete">auto-deletion</a> has been +<p> Removes all items from the cache, and deletes them if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> has been enabled. <p> All cache iterators that operate on this cache are reset. <p> <p>See also <a href="#remove">remove</a>() and <a href="#take">take</a>(). -<p>Reimplemented from <a href="ntqptrcollection.html#clear">TQPtrCollection</a>. +<p>Reimplemented from <a href="tqptrcollection.html#clear">TQPtrCollection</a>. <h3 class=fn>uint <a name="count"></a>TQAsciiCache::count () const<tt> [virtual]</tt> </h3> <p> Returns the number of items in the cache. <p> <p>See also <a href="#totalCost">totalCost</a>() and <a href="#size">size</a>(). -<p>Reimplemented from <a href="ntqptrcollection.html#count">TQPtrCollection</a>. +<p>Reimplemented from <a href="tqptrcollection.html#count">TQPtrCollection</a>. <h3 class=fn>type * <a name="find"></a>TQAsciiCache::find ( const char * k, bool ref = TRUE ) const </h3> @@ -192,7 +192,7 @@ inserted last is returned. <p> Removes the item with key <em>k</em> and returns TRUE if the item was present in the cache; otherwise returns FALSE. <p> The item is deleted if auto-deletion has been enabled, i.e., if -you have called <a href="ntqptrcollection.html#setAutoDelete">setAutoDelete(TRUE)</a>. +you have called <a href="tqptrcollection.html#setAutoDelete">setAutoDelete(TRUE)</a>. <p> If there are two or more items with equal keys, the one that was inserted last is removed. <p> All iterators that refer to the removed item are set to point to |