|
Point Cloud Library (PCL)
1.15.1-dev
|
#include <pcl/outofcore/impl/lru_cache.hpp>
Public Types | |
| using | KeyIndex = std::list< KeyT > |
| using | KeyIndexIterator = typename KeyIndex::iterator |
| using | Cache = std::map< KeyT, std::pair< CacheItemT, typename KeyIndex::iterator > > |
Public Member Functions | |
| 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) |
Public Attributes | |
| std::size_t | capacity_ |
| std::size_t | size_ {0} |
| KeyIndex | key_index_ |
| Cache | cache_ |
Definition at line 30 of file lru_cache.hpp.
| using LRUCache< KeyT, CacheItemT >::Cache = std::map<KeyT, std::pair<CacheItemT, typename KeyIndex::iterator> > |
Definition at line 36 of file lru_cache.hpp.
| using LRUCache< KeyT, CacheItemT >::KeyIndex = std::list<KeyT> |
Definition at line 34 of file lru_cache.hpp.
| using LRUCache< KeyT, CacheItemT >::KeyIndexIterator = typename KeyIndex::iterator |
Definition at line 35 of file lru_cache.hpp.
|
inline |
Definition at line 38 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::capacity_.
|
inline |
Definition at line 146 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_, LRUCache< KeyT, CacheItemT >::key_index_, and LRUCache< KeyT, CacheItemT >::size_.
Referenced by LRUCache< KeyT, CacheItemT >::insert().
|
inline |
Definition at line 51 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_, and LRUCache< KeyT, CacheItemT >::key_index_.
|
inline |
Definition at line 45 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_.
|
inline |
|
inline |
Definition at line 126 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::capacity_.
|
inline |
Definition at line 139 of file lru_cache.hpp.
|
inline |
Definition at line 132 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_, and LRUCache< KeyT, CacheItemT >::key_index_.
|
inline |
Definition at line 65 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_, and LRUCache< KeyT, CacheItemT >::key_index_.
Referenced by LRUCache< KeyT, CacheItemT >::insert().
Definition at line 176 of file lru_cache.hpp.
Referenced by LRUCache< KeyT, CacheItemT >::evict(), LRUCache< KeyT, CacheItemT >::get(), LRUCache< KeyT, CacheItemT >::hasKey(), LRUCache< KeyT, CacheItemT >::insert(), LRUCache< KeyT, CacheItemT >::tailItem(), and LRUCache< KeyT, CacheItemT >::touch().
| std::size_t LRUCache< KeyT, CacheItemT >::capacity_ |
Definition at line 167 of file lru_cache.hpp.
Referenced by LRUCache< KeyT, CacheItemT >::insert(), LRUCache< KeyT, CacheItemT >::LRUCache(), and LRUCache< KeyT, CacheItemT >::setCapacity().
Definition at line 173 of file lru_cache.hpp.
Referenced by LRUCache< KeyT, CacheItemT >::evict(), LRUCache< KeyT, CacheItemT >::get(), LRUCache< KeyT, CacheItemT >::insert(), LRUCache< KeyT, CacheItemT >::tailItem(), and LRUCache< KeyT, CacheItemT >::touch().
| std::size_t LRUCache< KeyT, CacheItemT >::size_ {0} |
Definition at line 170 of file lru_cache.hpp.
Referenced by LRUCache< KeyT, CacheItemT >::evict(), and LRUCache< KeyT, CacheItemT >::insert().