PLaSK library
Loading...
Searching...
No Matches
plask::CacheRemoveStrategyBase< Key, ValuePtr > Struct Template Reference

Base class for strategy of removing from cache. More...

#include <plask/utils/cache.hpp>

Inheritance diagram for plask::CacheRemoveStrategyBase< Key, ValuePtr >:
[legend]
Collaboration diagram for plask::CacheRemoveStrategyBase< Key, ValuePtr >:
[legend]

Public Attributes

std::map< Key *, ValuePtrmap
 Cached objects.
 

Detailed Description

template<typename Key, typename ValuePtr>
struct plask::CacheRemoveStrategyBase< Key, ValuePtr >

Base class for strategy of removing from cache.

Subclass should have method: void onEvent(typename Key::Event& evt) which eventually (depends from event details) removes from map a source of event.

Used by WeakCache and StrongCache.

Definition at line 36 of file cache.hpp.

Member Data Documentation

◆ map

Cached objects.

Definition at line 39 of file cache.hpp.


The documentation for this struct was generated from the following file: