MCPcopy Create free account
hub / github.com/colmap/colmap / LRUCache

Method LRUCache

src/colmap/util/cache.h:190–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189template <typename key_t, typename value_t>
190LRUCache<key_t, value_t>::LRUCache(const size_t max_num_elems, LoadFn load_fn)
191 : max_num_elems_(max_num_elems), load_fn_(std::move(load_fn)) {
192 THROW_CHECK_NOTNULL(load_fn_);
193 THROW_CHECK_GT(max_num_elems, 0);
194}
195
196template <typename key_t, typename value_t>
197size_t LRUCache<key_t, value_t>::NumElems() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected