LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
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 50 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 66 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 87 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 94 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 100 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 81 of file assoccache.h.


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