Class ISubBlockCacheOperation#

Inheritance Relationships#

Derived Type#

Class Documentation#

class ISubBlockCacheOperation#

This interface defines the operations of adding and querying an element to/from the cache.

Subclassed by libCZI::ISubBlockCache

Public Functions

virtual std::shared_ptr<IBitmapData> Get(int subblock_index) = 0#

Gets the bitmap for the specified subblock-index. If the subblock is not in the cache, then a nullptr is returned.

Parameters:

subblock_index – The subblock index to get.

Returns:

If the subblock is in the cache, then a std::shared_ptr<libCZI::IBitmapData> is returned. Otherwise a nullptr is returned.

virtual void Add(int subblock_index, std::shared_ptr<IBitmapData> pBitmap) = 0#

Adds the specified bitmap for the specified subblock_index to the cache. If the subblock is already in the cache, then it is overwritten.

Parameters:
  • subblock_index – The subblock index to add.

  • pBitmap – The bitmap.

virtual ~ISubBlockCacheOperation() = default#
ISubBlockCacheOperation() = default#
ISubBlockCacheOperation(const ISubBlockCacheOperation&) = delete#
ISubBlockCacheOperation &operator=(const ISubBlockCacheOperation&) = delete#
ISubBlockCacheOperation(ISubBlockCacheOperation&&) noexcept = delete#
ISubBlockCacheOperation &operator=(ISubBlockCacheOperation&&) noexcept = delete#