|
The Vish Visualization Shell 0.3
Vish
|
Cache queues of different purpose. More...
#include <elementary/memcore/CacheMultiQueue.hpp>
Public Member Functions | |
| bool | adjust (const CacheBase &theCache, memsize_t newCost) |
| Try to release objects in this queue system such that the new object fits into the allowed total costs. | |
| void | insert_zombie (const WeakPtr< Cacheable > &Ca) |
| insert an object that is already dead. | |
| int | iterate (CacheQueue::Iterator &PrimaryIt, CacheQueue::Iterator &UnreleasableIt) const |
| Iterate over the cache queues. | |
| int | nEntries () const |
| Count the number of entries here. | |
| memsize_t | purge_Hades () |
| cleanse all dead objects | |
Public Attributes | |
| Hades_t | Hades |
| Objects that happen to hang around, just to be deleted at next chance. | |
| RefPtr< CacheQueue > | Primary |
| Normal objects. | |
| RefPtr< CacheQueue > | TemporaryUnreleasable |
| Objects that are not releasable at the moment, but might be soon. | |
| RefPtr< CacheQueue > | Unreleasable |
| Objects that are known to be not releasable. | |
Cache queues of different purpose.
|
inline |
Iterate over the cache queues.
Referenced by Wizt::Seagrass::computeAnemonesMemory(), Wizt::Seagrass::getCachedAnemonesMemory(), and Wizt::Seagrass::getNumberOfAnemones().
|
inline |
Count the number of entries here.
Never call this function, it is maximally slow.