DDD  1.9.0.20240826145154
Public Member Functions | Private Types | Private Attributes | List of all members
MLCache< MLHomType, NodeType, HomNodeMapType > Class Template Reference

#include <MLCache.hh>

Collaboration diagram for MLCache< MLHomType, NodeType, HomNodeMapType >:
Collaboration graph

Public Member Functions

 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)
 

Private Types

typedef hash_map< std::pair< MLHomType, NodeType >, HomNodeMapType >::type hash_map
 

Private Attributes

size_t peak_
 
hash_map cache_
 

Member Typedef Documentation

◆ 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

Constructor & Destructor Documentation

◆ MLCache()

template<typename MLHomType , typename NodeType , typename HomNodeMapType >
MLCache< MLHomType, NodeType, HomNodeMapType >::MLCache ( )
inline

Member Function Documentation

◆ clear()

template<typename MLHomType , typename NodeType , typename HomNodeMapType >
void MLCache< MLHomType, NodeType, HomNodeMapType >::clear ( bool  keepstats = false)
inline

◆ insert()

template<typename MLHomType , typename NodeType , typename HomNodeMapType >
std::pair<bool,HomNodeMapType> MLCache< MLHomType, NodeType, HomNodeMapType >::insert ( const MLHomType &  hom,
const NodeType &  node 
)
inline

◆ 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

Member Data Documentation

◆ cache_

template<typename MLHomType , typename NodeType , typename HomNodeMapType >
hash_map MLCache< MLHomType, NodeType, HomNodeMapType >::cache_
private

◆ 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:

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Aug 26 2024 14:54:00 for DDD by doxygen 1.9.1