38 #ifndef OME_FILES_TILECACHE_H 39 #define OME_FILES_TILECACHE_H 41 #include <ome/files/Types.h> 42 #include <ome/files/TileBuffer.h> 97 value_type tilebuffer);
105 erase(key_type tileindex);
115 find(key_type tileindex);
126 find(key_type tileindex)
const;
159 std::map<key_type, value_type>
cache;
165 #endif // OME_FILES_TILECACHE_H void clear()
Clear the tile cache.
Definition: TileCache.cpp:96
Tile cache.
Definition: TileCache.h:58
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:58
value_type find(key_type tileindex)
Find a tile in the tile cache.
Definition: TileCache.cpp:70
virtual ~TileCache()
Destructor.
Definition: TileCache.cpp:50
std::map< key_type, value_type > cache
Mapping of tile number to tile buffer.
Definition: TileCache.h:159
Open Microscopy Environment C++.
std::shared_ptr< TileBuffer > value_type
Tile buffer type.
Definition: TileCache.h:64
dimension_size_type size() const
Get the tile cache size.
Definition: TileCache.cpp:90
dimension_size_type key_type
Tile index type.
Definition: TileCache.h:62
void erase(key_type tileindex)
Remove a tile from the tile cache.
Definition: TileCache.cpp:64
TileCache()
Constructor.
Definition: TileCache.cpp:45
SKIP bool insert(key_type tileindex, value_type tilebuffer)
Insert a tile into the tile cache.
Definition: TileCache.cpp:55
value_type & operator[](key_type tileindex)
Get a tile from the tile cache.
Definition: TileCache.cpp:102