![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <cache.h>

Public Types | |
| using | LoadFn = std::function< std::shared_ptr< value_t >(const key_t &)> |
Public Member Functions | |
| MemoryConstrainedLRUCache (size_t max_num_bytes, LoadFn load_fn) | |
| size_t | NumBytes () const |
| size_t | MaxNumBytes () const |
| void | UpdateNumBytes (const key_t &key) |
| size_t | NumElems () const |
| size_t | MaxNumElems () const |
| bool | Exists (const key_t &key) const |
| std::shared_ptr< value_t > | Get (const key_t &key) |
| bool | Evict (const key_t &key) |
| void | Pop () |
| void | Clear () |
| using colmap::MemoryConstrainedLRUCache< key_t, value_t >::LoadFn = std::function<std::shared_ptr<value_t>(const key_t&)> |
| colmap::MemoryConstrainedLRUCache< key_t, value_t >::MemoryConstrainedLRUCache | ( | size_t | max_num_bytes, |
| LoadFn | load_fn | ||
| ) |
| void colmap::MemoryConstrainedLRUCache< key_t, value_t >::Clear |
Definition at line 419 of file cache.h.
Referenced by colmap::mvs::CachedWorkspace::ClearCache().
| bool colmap::MemoryConstrainedLRUCache< key_t, value_t >::Evict | ( | const key_t & | key | ) |
| bool colmap::MemoryConstrainedLRUCache< key_t, value_t >::Exists | ( | const key_t & | key | ) | const |
| std::shared_ptr< value_t > colmap::MemoryConstrainedLRUCache< key_t, value_t >::Get | ( | const key_t & | key | ) |
Definition at line 352 of file cache.h.
References cloudViewer::core::make_pair().
Referenced by colmap::mvs::CachedWorkspace::GetBitmap(), colmap::mvs::CachedWorkspace::GetDepthMap(), and colmap::mvs::CachedWorkspace::GetNormalMap().
| size_t colmap::MemoryConstrainedLRUCache< key_t, value_t >::MaxNumBytes |
| size_t colmap::MemoryConstrainedLRUCache< key_t, value_t >::MaxNumElems | ( | ) | const |
| size_t colmap::MemoryConstrainedLRUCache< key_t, value_t >::NumBytes |
| size_t colmap::MemoryConstrainedLRUCache< key_t, value_t >::NumElems |
| void colmap::MemoryConstrainedLRUCache< key_t, value_t >::Pop |
| void colmap::MemoryConstrainedLRUCache< key_t, value_t >::UpdateNumBytes | ( | const key_t & | key | ) |
Definition at line 405 of file cache.h.
Referenced by colmap::mvs::CachedWorkspace::GetBitmap(), colmap::mvs::CachedWorkspace::GetDepthMap(), and colmap::mvs::CachedWorkspace::GetNormalMap().