VISH  0.2
Public Member Functions
MemCore::CacheMap Class Reference

A list of cache queues for each cacheable type. More...

#include </home/werner/origo/vish/memcore/CacheMap.hpp>

List of all members.

Public Member Functions


Detailed Description

A list of cache queues for each cacheable type.


Member Function Documentation

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.

Parameters:
CreatorTypeThe type of the creator domain that shall be used primarily.

raise exception here??????

memsize_t MemCore::CacheMap::memsize ( bool  FreeableOnly = false) const
Note:
This is a very slow function and should be called only for debugging purposes
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.

Note:
This is a very slow function and should be called only for debugging purposes
bool MemCore::CacheMap::touch ( const WeakPtr< Cacheable > &  Ca)

Put in queue of appropriate creator domain.

Returns:
false of no appropriate creator domain exists. Must use insert() function for that.

The documentation for this class was generated from the following files: