Include file:
#include "mcrl2/utilities/cache_policy.h
mcrl2::utilities::
replacement_policy
¶An interface to implement a replacement policy for the fixed_size_cache.
mcrl2::utilities::replacement_policy::
key_type
¶typedef for typename Map::key_type
mcrl2::utilities::replacement_policy::
map_type
¶typedef for Map
clear
() = 0Called whenever the underlying cache is cleared.
inserted
(const key_type &key) = 0Called whenever a new element has been inserted into the cache.
replacement_candidate
(Map &map) = 0Returns: An iterator to the key that should be replaced when the cache is full.
touch
(const key_type &key) = 0Called whenever an element was found in the cache.