diff options
Diffstat (limited to 'doc/qasciicache.doc')
-rw-r--r-- | doc/qasciicache.doc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/qasciicache.doc b/doc/qasciicache.doc index 576b82af2..12b86ad70 100644 --- a/doc/qasciicache.doc +++ b/doc/qasciicache.doc @@ -69,7 +69,7 @@ recently used item. There are also methods to remove() or take() an object from the - cache. Calling \link QPtrCollection::setAutoDelete() + cache. Calling \link TQPtrCollection::setAutoDelete() setAutoDelete(TRUE)\endlink 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). @@ -78,13 +78,13 @@ not the item itself. This is called a shallow copy. It is possible to make the cache copy all of the item's data (known as a deep copy) when an item is inserted. insert() calls the virtual - function QPtrCollection::newItem() for the item to be inserted. + function TQPtrCollection::newItem() for the item to be inserted. Inherit a cache and reimplement newItem() if you want deep copies. When removing a cache item the virtual function - QPtrCollection::deleteItem() is called. Its default implementation + TQPtrCollection::deleteItem() is called. Its default implementation in QAsciiCache is to delete the item if \link - QPtrCollection::setAutoDelete() auto-deletion\endlink is enabled. + TQPtrCollection::setAutoDelete() auto-deletion\endlink is enabled. There is a QAsciiCacheIterator which may be used to traverse the items in the cache in arbitrary order. @@ -222,7 +222,7 @@ present in the cache; otherwise returns FALSE. The item is deleted if auto-deletion has been enabled, i.e., if - you have called \link QPtrCollection::setAutoDelete() + you have called \link TQPtrCollection::setAutoDelete() setAutoDelete(TRUE)\endlink. If there are two or more items with equal keys, the one that was @@ -254,7 +254,7 @@ \fn void QAsciiCache::clear() Removes all items from the cache, and deletes them if \link - QPtrCollection::setAutoDelete() auto-deletion\endlink has been + TQPtrCollection::setAutoDelete() auto-deletion\endlink has been enabled. All cache iterators that operate on this cache are reset. |