libCZI
Reading and Writing CZI documents made easy
|
This interface defines the operations of adding and querying an element to/from the cache. More...
#include <libCZI_Compositor.h>
Public Member Functions | |
virtual std::shared_ptr< IBitmapData > | Get (int subblock_index)=0 |
virtual void | Add (int subblock_index, std::shared_ptr< IBitmapData > pBitmap)=0 |
ISubBlockCacheOperation (const ISubBlockCacheOperation &)=delete | |
ISubBlockCacheOperation & | operator= (const ISubBlockCacheOperation &)=delete |
ISubBlockCacheOperation (ISubBlockCacheOperation &&) noexcept=delete | |
ISubBlockCacheOperation & | operator= (ISubBlockCacheOperation &&) noexcept=delete |
This interface defines the operations of adding and querying an element to/from the cache.
|
pure virtual |
Adds the specified bitmap for the specified subblock_index to the cache. If the subblock is already in the cache, then it is overwritten.
subblock_index | The subblock index to add. |
pBitmap | The bitmap. |
|
pure virtual |
Gets the bitmap for the specified subblock-index. If the subblock is not in the cache, then a nullptr is returned.
subblock_index | The subblock index to get. |