A function wrapper that caches function values.
More...
#include <CachedFunction.hpp>
|
|
using | input = typename Map::key_type |
| |
|
using | output = typename Map::mapped_type |
| |
|
|
template<typename... MapArgs> |
| | CachedFunction (Function function, MapArgs... map_args) |
| |
|
const output & | operator() (const input &x) |
| | Obtain the function result.
|
| |
|
void | clear () |
| | Clear the cache entries.
|
| |
template<typename Function, typename Map>
class CachedFunction< Function, Map >
A function wrapper that caches function values.
The documentation for this class was generated from the following file:
- src/Utilities/CachedFunction.hpp