38 #ifndef OME_FILES_TILECACHE_H 39 #define OME_FILES_TILECACHE_H 41 #include <ome/files/Types.h> 42 #include <ome/files/TileBuffer.h> 100 value_type tilebuffer);
108 erase(key_type tileindex);
118 find(key_type tileindex);
129 find(key_type tileindex)
const;
162 std::map<key_type, value_type>
cache;
168 #endif // OME_FILES_TILECACHE_H
void clear()
Clear the tile cache.
Definition: TileCache.cpp:96
Tile cache.
Definition: TileCache.h:59
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:59
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:162
dimension_size_type key_type
Tile index type.
Definition: TileCache.h:63
void erase(key_type tileindex)
Remove a tile from the tile cache.
Definition: TileCache.cpp:64
ome::compat::shared_ptr< TileBuffer > value_type
Tile buffer type.
Definition: TileCache.h:65
TileCache & operator=(const TileCache &)
Assignment operator (deleted).
TileCache()
Constructor.
Definition: TileCache.cpp:45
bool insert(key_type tileindex, value_type tilebuffer)
Insert a tile into the tile cache.
Definition: TileCache.cpp:55
dimension_size_type size() const
Get the tile cache size.
Definition: TileCache.cpp:90
value_type & operator[](key_type tileindex)
Get a tile from the tile cache.
Definition: TileCache.cpp:102