Blender V4.3
blender::memory_cache::tests::CachedInt Class Reference

Inherits blender::memory_cache::CachedValue.

Public Member Functions

 CachedInt (int initial_value)
 
void count_memory (MemoryCounter &memory) const override
 
- Public Member Functions inherited from blender::memory_cache::CachedValue
virtual ~CachedValue ()=default
 

Public Attributes

int value
 

Detailed Description

Definition at line 41 of file BLI_memory_cache_test.cc.

Constructor & Destructor Documentation

◆ CachedInt()

blender::memory_cache::tests::CachedInt::CachedInt ( int initial_value)
inline

Definition at line 45 of file BLI_memory_cache_test.cc.

Member Function Documentation

◆ count_memory()

void blender::memory_cache::tests::CachedInt::count_memory ( MemoryCounter & memory) const
inlineoverridevirtual

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

Implements blender::memory_cache::CachedValue.

Definition at line 47 of file BLI_memory_cache_test.cc.

References blender::memory_counter::MemoryCounter::add().

Member Data Documentation

◆ value

int blender::memory_cache::tests::CachedInt::value

Definition at line 43 of file BLI_memory_cache_test.cc.


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