Blender V5.0
BLI_memory_cache.hh File Reference

Go to the source code of this file.

Classes

class  blender::memory_cache::CachedValue

Namespaces

namespace  blender
namespace  blender::memory_cache

Functions

std::shared_ptr< CachedValueblender::memory_cache::get_base (const GenericKey &key, FunctionRef< std::unique_ptr< CachedValue >()> compute_fn)
void blender::memory_cache::set_approximate_size_limit (int64_t limit_in_bytes)
void blender::memory_cache::clear ()
void blender::memory_cache::remove_if (FunctionRef< bool(const GenericKey &)> predicate)
Inline Functions
template<typename T>
std::shared_ptr< const Tblender::memory_cache::get (const GenericKey &key, FunctionRef< std::unique_ptr< T >()> compute_fn)