Blender V5.0
blender::memory_cache::CachedValue Class Referenceabstract

#include <BLI_memory_cache.hh>

Inherited by blender::memory_cache::tests::CachedInt, blender::nodes::node_geo_import_csv::LoadCsvCache, blender::nodes::node_geo_import_obj::LoadObjCache, blender::nodes::node_geo_import_stl::LoadStlCache, blender::nodes::node_geo_import_text::LoadTextCache, and blender::nodes::nodes_geo_import_ply::LoadPlyCache.

Public Member Functions

virtual ~CachedValue ()=default
virtual void count_memory (MemoryCounter &memory) const =0

Detailed Description

A value that is stored in the cache. It may be freed automatically when the cache is full. This is expected to be subclassed by users of the memory cache.

Definition at line 21 of file BLI_memory_cache.hh.

Constructor & Destructor Documentation

◆ ~CachedValue()

virtual blender::memory_cache::CachedValue::~CachedValue ( )
virtualdefault

Member Function Documentation

◆ count_memory()

virtual void blender::memory_cache::CachedValue::count_memory ( MemoryCounter & memory) const
pure virtual

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