A Dictionary designed to store any type using the 'store' and 'load' functions.
More...
|
void | enable_recurrent_caching (bool enable=true) |
|
template<class K , class V , cache_key_type R> |
bool | contains (key_type< K, V, R > key) const |
|
template<class K , class V > |
auto & | load (key_type< K, V, cache_key_type::inherit > key, int t_modifier=0) const |
|
template<class K , class V , class Factory > |
auto & | load (key_type< K, V, cache_key_type::inherit > key, int t_modifier, Factory factory) const |
|
template<class K , class V , class Factory > |
auto & | load (key_type< K, V, cache_key_type::inherit > key, Factory factory) const |
|
template<class K , class V , class U > |
auto & | store (key_type< K, V, cache_key_type::inherit > key, U &&expression) |
|
template<class K , class V > |
auto & | load (key_type< K, V, cache_key_type::always_recurrent > key, int t_modifier=0) const |
| Loads the current value at the current time_index. More...
|
|
template<class K , class V > |
auto & | load (key_type< K, V, cache_key_type::always_forward > key, int t_modifier=0) const |
|
template<class K , class V , class DefaultFactory > |
auto & | load (key_type< K, V, cache_key_type::always_recurrent > key, int t_modifier, DefaultFactory function) const |
|
template<class K , class V , class DefaultFactory > |
auto & | load (key_type< K, V, cache_key_type::always_recurrent > key, DefaultFactory function) const |
|
template<class K , class V , class DefaultFactory > |
auto & | load (key_type< K, V, cache_key_type::always_forward > key, DefaultFactory function) const |
|
template<class K , class V , class U > |
auto & | store (key_type< K, V, cache_key_type::always_recurrent > key, U &&expression) |
|
template<class K , class V , class U > |
auto & | store (key_type< K, V, cache_key_type::always_forward > key, U &&expression) |
|
int | get_time_index () const |
|
void | increment_time_index () |
|
void | decrement_time_index () |
|
void | zero_time_index () |
|
void | set_time_index (int idx) |
|
template<class K , class V > |
void | clear_bp_storage (key_type< K, V, cache_key_type::always_forward > key) |
|
template<class K , class V > |
void | clear_bp_storage (key_type< K, V, cache_key_type::inherit > key) |
|
template<class K , class V > |
void | clear_bp_storage (key_type< K, V, cache_key_type::always_recurrent > key) |
|
A Dictionary designed to store any type using the 'store' and 'load' functions.
The cache object stores any object that can be mapped from a unique cache_key. Additionally the Cache object stores an integer time-index which determines the current 'time' to return when loading a Value from a Recurrent key.
The time_index is only relevant with recurrent keys.