LeechCraft  0.6.70-15082-g543737046d
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 56 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)
inlineexplicit

Definition at line 72 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 93 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 100 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 106 of file assoccache.h.

◆ size()

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

Definition at line 87 of file assoccache.h.


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