Blender V4.3
blender::memory_cache::CachedValue Class Referenceabstract

#include <BLI_memory_cache.hh>

Inherited by blender::memory_cache::tests::CachedInt.

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 17 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

Gather the memory used by this value. This allows the cache system to determine when it is full.

Implemented in blender::memory_cache::tests::CachedInt.


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