LeechCraft  0.6.70-13605-g8cd066ad6a
Modular cross-platform feature rich live environment.
LC::Util::AssocCache< K, V, CS > Class Template Reference

#include "assoccache.h"

Public Member Functions

 AssocCache (size_t maxCost)
 
size_t size () const
 
void clear ()
 
bool contains (const K &) const
 
V & operator[] (const K &)
 

Detailed Description

template<typename K, typename V, typename CS = CacheStrat::LRU>
class LC::Util::AssocCache< K, V, CS >

Definition at line 131 of file assoccache.h.

Constructor & Destructor Documentation

◆ AssocCache()

template<typename K , typename V , typename CS = CacheStrat::LRU>
LC::Util::AssocCache< K, V, CS >::AssocCache ( size_t  maxCost)
inline

Definition at line 147 of file assoccache.h.

Member Function Documentation

◆ clear()

template<typename K , typename V , typename CS >
void LC::Util::AssocCache< K, V, CS >::clear ( )

Definition at line 168 of file assoccache.h.

◆ contains()

template<typename K , typename V , typename CS >
bool LC::Util::AssocCache< K, V, CS >::contains ( const K &  k) const

Definition at line 175 of file assoccache.h.

◆ operator[]()

template<typename K , typename V , typename CS >
V & LC::Util::AssocCache< K, V, CS >::operator[] ( const K &  key)

Definition at line 181 of file assoccache.h.

◆ size()

template<typename K , typename V , typename CS >
size_t LC::Util::AssocCache< K, V, CS >::size ( ) const

Definition at line 162 of file assoccache.h.


The documentation for this class was generated from the following file: