libCZI
Reading and Writing CZI documents made easy
|
This interface defines the global operations on the cache. It is used to control the memory usage of the cache. More...
#include <libCZI_Compositor.h>
Classes | |
struct | PruneOptions |
Public Member Functions | |
virtual void | Prune (const PruneOptions &options)=0 |
ISubBlockCacheControl (const ISubBlockCacheControl &)=delete | |
ISubBlockCacheControl & | operator= (const ISubBlockCacheControl &)=delete |
ISubBlockCacheControl (ISubBlockCacheControl &&) noexcept=delete | |
ISubBlockCacheControl & | operator= (ISubBlockCacheControl &&) noexcept=delete |
This interface defines the global operations on the cache. It is used to control the memory usage of the cache.
|
pure virtual |
Prunes the cache. This means that sub-blocks are removed from the cache until the cache satisfies the conditions given in the options. Note that the prune operation is not done automatically - it must be called manually. I.e. when adding an element to the cache, the cache is not pruned automatically.
options | Options for controlling the operation. |