#include <plask/utils/cache.hpp>
|
| ~CacheBase () |
| Clear cache.
|
|
void | append (Key *index, ValuePtr value) |
| Append entry to cache.
|
|
void | append (plask::shared_ptr< Key > index, ValuePtr value) |
| Append entry to cache.
|
|
plask::shared_ptr< Value > | operator() (Key *index, Value *value) |
| Construct shared pointer to value and append cache entry which consists of given index and constructed shared pointer.
|
|
plask::shared_ptr< Value > | operator() (Key *index, shared_ptr< Value > value) |
| Append cache entry which consists of given index and value and return value.
|
|
plask::shared_ptr< Value > | operator() (plask::shared_ptr< Key > index, Value *value) |
| Construct shared pointer to value and append cache entry which consists of given index and constructed shared pointer.
|
|
plask::shared_ptr< Value > | operator() (plask::shared_ptr< Key > index, shared_ptr< Value > value) |
| Construct shared pointer to value and append cache entry which consists of given index and constructed shared pointer.
|
|
void | clear () |
| Remove all entries from this cache.
|
|
Definition at line 76 of file cache.hpp.
◆ Value
◆ ~CacheBase()
◆ append() [1/2]
Append entry to cache.
- Parameters
-
index | key of entry |
value | value of entry |
Definition at line 90 of file cache.hpp.
◆ append() [2/2]
Append entry to cache.
- Parameters
-
index | key of entry |
value | value of entry |
Definition at line 101 of file cache.hpp.
◆ clear()
Remove all entries from this cache.
Definition at line 190 of file cache.hpp.
◆ operator()() [1/4]
Append cache entry which consists of given index and value and return value.
This is useful in methods which wants to append new value to cache and return it:
- Parameters
-
- Returns
- shared pointer to value
Definition at line 141 of file cache.hpp.
◆ operator()() [2/4]
Construct shared pointer to value and append cache entry which consists of given index and constructed shared pointer.
This is useful in methods which wants to append new value to cache and return it:
- Parameters
-
- Returns
- shared pointer to value
Definition at line 120 of file cache.hpp.
◆ operator()() [3/4]
Construct shared pointer to value and append cache entry which consists of given index and constructed shared pointer.
This is useful in methods which wants to append new value to cache and return it:
- Parameters
-
- Returns
- value
Definition at line 182 of file cache.hpp.
◆ operator()() [4/4]
Construct shared pointer to value and append cache entry which consists of given index and constructed shared pointer.
This is useful in methods which wants to append new value to cache and return it:
- Parameters
-
- Returns
- value
Definition at line 161 of file cache.hpp.
The documentation for this struct was generated from the following file: