Point Cloud Library (PCL)
1.7.0
|
#include <pcl/outofcore/impl/lru_cache.hpp>
Public Types | |
typedef std::list< KeyT > | KeyIndex |
typedef KeyIndex::iterator | KeyIndexIterator |
typedef std::map< KeyT, std::pair< CacheItemT, typename KeyIndex::iterator > > | Cache |
typedef Cache::iterator | CacheIterator |
Public Member Functions | |
LRUCache (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 (size_t capacity) |
CacheItemT & | tailItem () |
size_t | sizeOf (const CacheItemT &value) |
bool | evict (int item_count=1) |
Public Attributes | |
size_t | capacity_ |
size_t | size_ |
KeyIndex | key_index_ |
Cache | cache_ |
Definition at line 27 of file lru_cache.hpp.
typedef std::map<KeyT, std::pair<CacheItemT, typename KeyIndex::iterator> > LRUCache< KeyT, CacheItemT >::Cache |
Definition at line 34 of file lru_cache.hpp.
typedef Cache::iterator LRUCache< KeyT, CacheItemT >::CacheIterator |
Definition at line 35 of file lru_cache.hpp.
typedef std::list<KeyT> LRUCache< KeyT, CacheItemT >::KeyIndex |
Definition at line 31 of file lru_cache.hpp.
typedef KeyIndex::iterator LRUCache< KeyT, CacheItemT >::KeyIndexIterator |
Definition at line 32 of file lru_cache.hpp.
|
inline |
Definition at line 37 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::capacity_.
|
inline |
Definition at line 145 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 50 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_, and LRUCache< KeyT, CacheItemT >::key_index_.
|
inline |
Definition at line 44 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_.
|
inline |
|
inline |
Definition at line 125 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::capacity_.
|
inline |
Definition at line 138 of file lru_cache.hpp.
|
inline |
Definition at line 131 of file lru_cache.hpp.
References LRUCache< KeyT, CacheItemT >::cache_, and LRUCache< KeyT, CacheItemT >::key_index_.
|
inline |
Definition at line 64 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 175 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().
size_t LRUCache< KeyT, CacheItemT >::capacity_ |
Definition at line 166 of file lru_cache.hpp.
Referenced by LRUCache< KeyT, CacheItemT >::insert(), LRUCache< KeyT, CacheItemT >::LRUCache(), and LRUCache< KeyT, CacheItemT >::setCapacity().
Definition at line 172 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().
size_t LRUCache< KeyT, CacheItemT >::size_ |
Definition at line 169 of file lru_cache.hpp.
Referenced by LRUCache< KeyT, CacheItemT >::evict(), and LRUCache< KeyT, CacheItemT >::insert().