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

Strategy of removing from cache which removes key always when it is changed. More...

#include <plask/utils/cache.hpp>

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

Public Member Functions

void onEvent (typename Key::Event &evt)
 Remove source of event from cache map.
 

Additional Inherited Members

- Public Attributes inherited from plask::CacheRemoveStrategyBase< Key, ValuePtr >
std::map< Key *, ValuePtrmap
 Cached objects.
 

Detailed Description

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

Strategy of removing from cache which removes key always when it is changed.

Used by WeakCache and StrongCache.

Definition at line 64 of file cache.hpp.

Member Function Documentation

◆ onEvent()

template<typename Key , typename ValuePtr >
void plask::CacheRemoveOnEachChange< Key, ValuePtr >::onEvent ( typename Key::Event &  evt)
inline

Remove source of event from cache map.

Definition at line 67 of file cache.hpp.


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