Eneboo - Documentación para desarrolladores
|
Métodos públicos | |
QCList () | |
~QCList () | |
void | insert (QCacheItem *) |
void | insert (int, QCacheItem *) |
void | take (QCacheItem *) |
void | reference (QCacheItem *) |
void | setAutoDelete (bool del) |
bool | removeFirst () |
bool | removeLast () |
QCacheItem * | first () |
QCacheItem * | last () |
QCacheItem * | prev () |
QCacheItem * | next () |
Amigas | |
class | QGCacheIterator |
class | QCListIt |
QCList::QCList | ( | ) | [inline] |
QCList::~QCList | ( | ) |
QCacheItem* QCList::first | ( | ) | [inline] |
Returns the first list item. Sets this to current.
Reimplementado de QPtrList< QCacheItem >.
void QCList::insert | ( | QCacheItem * | ci | ) |
void QCList::insert | ( | int | i, |
QCacheItem * | ci | ||
) | [inline] |
QCacheItem* QCList::last | ( | ) | [inline] |
Returns the last list item. Sets this to current.
Reimplementado de QPtrList< QCacheItem >.
QCacheItem* QCList::next | ( | ) | [inline] |
Returns the next list item (after current). Sets this to current.
Reimplementado de QPtrList< QCacheItem >.
QCacheItem* QCList::prev | ( | ) | [inline] |
Returns the previous list item (before current). Sets this to current.
Reimplementado de QPtrList< QCacheItem >.
void QCList::reference | ( | QCacheItem * | ci | ) | [inline] |
bool QCList::removeFirst | ( | ) | [inline] |
Removes the first item in the list.
Reimplementado de QPtrList< QCacheItem >.
bool QCList::removeLast | ( | ) | [inline] |
Removes the last item in the list.
Reimplementado de QPtrList< QCacheItem >.
void QCList::setAutoDelete | ( | bool | enable | ) | [inline] |
Sets the collection to auto-delete its contents if enable is TRUE and to never delete them if enable is FALSE.
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.
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.
Note that the auto-delete setting may also affect other functions in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.
Reimplementado de QPtrCollection.
void QCList::take | ( | QCacheItem * | ci | ) |
friend class QCListIt [friend] |
friend class QGCacheIterator [friend] |