diff options
Diffstat (limited to 'doc/html/ntqcache.html')
-rw-r--r-- | doc/html/ntqcache.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/ntqcache.html b/doc/html/ntqcache.html index ed557bf54..da9c879d0 100644 --- a/doc/html/ntqcache.html +++ b/doc/html/ntqcache.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p>The TQCache class is a template class that provides a cache based on TQString keys. <a href="#details">More...</a> <p><tt>#include <<a href="qcache-h.html">ntqcache.h</a>></tt> -<p>Inherits <a href="ntqptrcollection.html">TQPtrCollection</a>. +<p>Inherits <a href="tqptrcollection.html">TQPtrCollection</a>. <p><a href="qcache-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> @@ -79,16 +79,16 @@ operates on pointers to X, or X*. 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</a>(TRUE) for a cache tells it to delete +cache. Calling <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(TRUE) for a cache tells it to delete items that are removed. The default is to not delete items when they 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. The default +<a href="tqptrcollection.html#deleteItem">TQPtrCollection::deleteItem</a>() is called. The default implementation deletes the item if auto-deletion is enabled, and does nothing otherwise. <p> There is a <a href="qcacheiterator.html">TQCacheIterator</a> that can be used to traverse the items @@ -127,7 +127,7 @@ that access this cache will be reset. </h3> <p> Returns the setting of the auto-delete option. The default is FALSE. -<p> <p>See also <a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>(). +<p> <p>See also <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(). <h3 class=fn>void <a name="clear"></a>TQCache::clear ()<tt> [virtual]</tt> </h3> @@ -137,14 +137,14 @@ has been enabled. <p> All cache iterators that operate this on 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>TQCache::count () const<tt> [virtual]</tt> </h3> <p> Returns the number of items in the cache. <p> <p>See also <a href="#totalCost">totalCost</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>TQCache::find ( const <a href="ntqstring.html">TQString</a> & k, bool ref = TRUE ) const </h3> @@ -201,7 +201,7 @@ inserted last is returned. <p> Removes the item associated with <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</a>(TRUE). +you have called <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(TRUE). <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 @@ -223,7 +223,7 @@ with two collections deleting the same items. in subclasses. For example, a subclass that has a <a href="#remove">remove</a>() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item. -<p> <p>See also <a href="ntqptrcollection.html#autoDelete">autoDelete</a>(). +<p> <p>See also <a href="tqptrcollection.html#autoDelete">autoDelete</a>(). <p>Examples: <a href="grapher-nsplugin-example.html#x2769">grapher/grapher.cpp</a>, <a href="scribble-example.html#x924">scribble/scribble.cpp</a>, and <a href="bigtable-example.html#x1291">table/bigtable/main.cpp</a>. <h3 class=fn>void <a name="setMaxCost"></a>TQCache::setMaxCost ( int m ) |