#include <pcl/outofcore/impl/lru_cache.hpp>
|
using | KeyIndex = std::list< KeyT > |
|
using | KeyIndexIterator = typename KeyIndex::iterator |
|
using | Cache = std::map< KeyT, std::pair< CacheItemT, typename KeyIndex::iterator > > |
|
using | CacheIterator = typename Cache::iterator |
|
|
| LRUCache (std::size_t c) |
|
bool | hasKey (const KeyT &k) |
|
CacheItemT & | get (const KeyT &k) |
|
void | touch (const KeyT &key) |
|
bool | insert (const KeyT &key, const CacheItemT &value) |
|
void | setCapacity (std::size_t capacity) |
|
CacheItemT & | tailItem () |
|
std::size_t | sizeOf (const CacheItemT &value) |
|
bool | evict (int item_count=1) |
|
template<typename KeyT, typename CacheItemT>
class LRUCache< KeyT, CacheItemT >
Definition at line 27 of file lru_cache.hpp.
◆ Cache
template<typename KeyT , typename CacheItemT >
using LRUCache< KeyT, CacheItemT >::Cache = std::map<KeyT, std::pair<CacheItemT, typename KeyIndex::iterator> > |
◆ CacheIterator
template<typename KeyT , typename CacheItemT >
◆ KeyIndex
template<typename KeyT , typename CacheItemT >
◆ KeyIndexIterator
template<typename KeyT , typename CacheItemT >
◆ LRUCache()
template<typename KeyT , typename CacheItemT >
◆ evict()
template<typename KeyT , typename CacheItemT >
bool LRUCache< KeyT, CacheItemT >::evict |
( |
int |
item_count = 1 | ) |
|
|
inline |
◆ get()
template<typename KeyT , typename CacheItemT >
CacheItemT& LRUCache< KeyT, CacheItemT >::get |
( |
const KeyT & |
k | ) |
|
|
inline |
◆ hasKey()
template<typename KeyT , typename CacheItemT >
bool LRUCache< KeyT, CacheItemT >::hasKey |
( |
const KeyT & |
k | ) |
|
|
inline |
◆ insert()
template<typename KeyT , typename CacheItemT >
bool LRUCache< KeyT, CacheItemT >::insert |
( |
const KeyT & |
key, |
|
|
const CacheItemT & |
value |
|
) |
| |
|
inline |
◆ setCapacity()
template<typename KeyT , typename CacheItemT >
void LRUCache< KeyT, CacheItemT >::setCapacity |
( |
std::size_t |
capacity | ) |
|
|
inline |
◆ sizeOf()
template<typename KeyT , typename CacheItemT >
std::size_t LRUCache< KeyT, CacheItemT >::sizeOf |
( |
const CacheItemT & |
value | ) |
|
|
inline |
◆ tailItem()
template<typename KeyT , typename CacheItemT >
CacheItemT& LRUCache< KeyT, CacheItemT >::tailItem |
( |
| ) |
|
|
inline |
◆ touch()
template<typename KeyT , typename CacheItemT >
void LRUCache< KeyT, CacheItemT >::touch |
( |
const KeyT & |
key | ) |
|
|
inline |
◆ cache_
template<typename KeyT , typename CacheItemT >
◆ capacity_
template<typename KeyT , typename CacheItemT >
std::size_t LRUCache< KeyT, CacheItemT >::capacity_ |
◆ key_index_
template<typename KeyT , typename CacheItemT >
◆ size_
template<typename KeyT , typename CacheItemT >
std::size_t LRUCache< KeyT, CacheItemT >::size_ |
The documentation for this class was generated from the following file: