Blender V4.3
blender::memory_cache::StoredValue Struct Reference

Public Attributes

std::shared_ptr< const GenericKeykey
 
std::shared_ptr< CachedValuevalue
 
int64_t last_use_time = 0
 

Detailed Description

Definition at line 19 of file memory_cache.cc.

Member Data Documentation

◆ key

std::shared_ptr<const GenericKey> blender::memory_cache::StoredValue::key

The corresponding key. It's stored here, because only a reference to it is used as key in the hash table.

This is a shared_ptr instead of unique_ptr so that the entire struct is copy constructible.

Definition at line 26 of file memory_cache.cc.

◆ last_use_time

int64_t blender::memory_cache::StoredValue::last_use_time = 0

A logical time that indicates when the value was last used. Lower values are older.

Definition at line 30 of file memory_cache.cc.

Referenced by blender::memory_cache::set_new_logical_time().

◆ value

std::shared_ptr<CachedValue> blender::memory_cache::StoredValue::value

The user-provided value.

Definition at line 28 of file memory_cache.cc.


The documentation for this struct was generated from the following file: