#include <MLCache.hh>
|
| MLCache () |
|
void | clear (bool keepstats=false) |
| clear the cache, discarding all values. More...
|
|
size_t | peak () const |
|
size_t | size () const |
|
std::pair< bool, HomNodeMapType > | insert (const MLHomType &hom, const NodeType &node) |
|
|
typedef hash_map< std::pair< MLHomType, NodeType >, HomNodeMapType >::type | hash_map |
|
◆ hash_map
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
typedef hash_map< std::pair<MLHomType, NodeType>, HomNodeMapType >::type MLCache< MLHomType, NodeType, HomNodeMapType >::hash_map |
|
private |
◆ MLCache()
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
◆ clear()
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
void MLCache< MLHomType, NodeType, HomNodeMapType >::clear |
( |
bool |
keepstats = false | ) |
|
|
inline |
clear the cache, discarding all values.
References MLCache< MLHomType, NodeType, HomNodeMapType >::cache_, ext_hash_map< Key, Data, HashKey, EqualKey >::clear(), and MLCache< MLHomType, NodeType, HomNodeMapType >::peak().
Referenced by MLHom::garbage().
◆ insert()
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
std::pair<bool,HomNodeMapType> MLCache< MLHomType, NodeType, HomNodeMapType >::insert |
( |
const MLHomType & |
hom, |
|
|
const NodeType & |
node |
|
) |
| |
|
inline |
References MLCache< MLHomType, NodeType, HomNodeMapType >::cache_, ext_hash_map< Key, Data, HashKey, EqualKey >::find(), and ext_hash_map< Key, Data, HashKey, EqualKey >::insert().
Referenced by MLHom::operator()().
◆ peak()
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
size_t MLCache< MLHomType, NodeType, HomNodeMapType >::peak |
( |
| ) |
const |
|
inline |
◆ size()
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
size_t MLCache< MLHomType, NodeType, HomNodeMapType >::size |
( |
| ) |
const |
|
inline |
◆ cache_
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
◆ peak_
template<typename MLHomType , typename NodeType , typename HomNodeMapType >
size_t MLCache< MLHomType, NodeType, HomNodeMapType >::peak_ |
|
mutableprivate |
The documentation for this class was generated from the following file: