VISH
0.2
|
A list of cache queues for each cacheable type. More...
#include </home/werner/origo/vish/memcore/CacheMap.hpp>
A list of cache queues for each cacheable type.
bool MemCore::CacheMap::adjust | ( | const type_info & | CreatorType, |
const CacheBase & | theCache, | ||
memsize_t | newCost | ||
) |
Try to adjust the cache by releasing objects from the queue until the new cost is achieved.
CreatorType | The type of the creator domain that shall be used primarily. |
raise exception here??????
memsize_t MemCore::CacheMap::memsize | ( | bool | FreeableOnly = false | ) | const |
int MemCore::CacheMap::nEntries | ( | ) | const |
Return the number of cached entries in a very slow way.
Don't ever call it except for rare debugging purposes.
Put in queue of appropriate creator domain.