The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
MemCore::CreatorCacheMap Class Reference

A list of cache maps for each creator type. More...

#include <elementary/memcore/CacheMap.hpp>

Inheritance diagram for MemCore::CreatorCacheMap:
MemCore::typemap< RefPtr< CacheMap > >

Public Member Functions

void insert (const WeakPtr< Cacheable > &Ca, bool InsertAsOld)
 Insert cacheable object.
 
void insert_zombie (const WeakPtr< Cacheable > &Ca)
 insert an object that is already dead.
 
void list_info ()
 Print debug info for cacheable objects.
 
void list_info (const type_info &CreatorDomain)
 Print debug info for a certain type of creator objects.
 
void list_info (const type_info &CreatorDomain, const type_info &CacheableDomain)
 Print debug info for a certain type of creator objects handling a domain of cacheable objects.
 
int nEntries () const
 Return the number of cached entries in a very slow way.
 
memsize_t purge ()
 Remove all objects from the Cache.
 
memsize_t purge_Hades ()
 cleanse all dead objects
 
bool touch (const WeakPtr< Cacheable > &Ca) const
 Put in queue of appropriate creator domain.
 

Detailed Description

A list of cache maps for each creator type.

Member Function Documentation

◆ nEntries()

int MemCore::CreatorCacheMap::nEntries ( ) const

Return the number of cached entries in a very slow way.

Don't ever call it except for rare debugging purposes.

Referenced by MemCore::Cache::insert().

◆ touch()

bool MemCore::CreatorCacheMap::touch ( const WeakPtr< Cacheable > &  Ca) const

Put in queue of appropriate creator domain.

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

Referenced by MemCore::Cache::touch().