LeechCraft  0.6.70-13729-g7046a9d2a7
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 80 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 96 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 117 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 124 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 130 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 111 of file assoccache.h.


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