|
libosmscout 1.1.1
|
#include <libosmscout-map/include/osmscoutmap/DataTileCache.h>
Public Member Functions | |
| DataTileCache (size_t cacheSize) | |
| void | SetSize (size_t cacheSize) |
| size_t | GetSize () const |
| size_t | GetCurrentSize () const |
| void | CleanupCache () |
| void | InvalidateCache () |
| TileRef | GetCachedTile (const TileKey &id) const |
| TileRef | GetTile (const TileKey &id) const |
| void | GetTilesForBoundingBox (const Magnification &magnification, const GeoBox &boundingBox, std::list< TileRef > &tiles) const |
| void | PrefillDataFromCache (Tile &tile, const TypeInfoSet &nodeTypes, const TypeInfoSet &wayTypes, const TypeInfoSet &areaTypes, const TypeInfoSet &routeTypes, const TypeInfoSet &optimizedWayTypes, const TypeInfoSet &optimizedAreaTypes) |
Data cache using tile based cache pages. The cache holds a number of of tiles. The maximum number of tiles hold can be configured. Tiles however will only be freed if a cleanup is explicitely triggered. So temporary overbooking can happen. This should assure that prefilling of tiles is possible even with a very low limit.
The cache will free least recently used tiles first,
|
explicit |
| void osmscout::DataTileCache::CleanupCache | ( | ) |
|
inline |
|
inline |
| void osmscout::DataTileCache::GetTilesForBoundingBox | ( | const Magnification & | magnification, |
| const GeoBox & | boundingBox, | ||
| std::list< TileRef > & | tiles ) const |
| void osmscout::DataTileCache::InvalidateCache | ( | ) |
| void osmscout::DataTileCache::PrefillDataFromCache | ( | Tile & | tile, |
| const TypeInfoSet & | nodeTypes, | ||
| const TypeInfoSet & | wayTypes, | ||
| const TypeInfoSet & | areaTypes, | ||
| const TypeInfoSet & | routeTypes, | ||
| const TypeInfoSet & | optimizedWayTypes, | ||
| const TypeInfoSet & | optimizedAreaTypes ) |
| void osmscout::DataTileCache::SetSize | ( | size_t | cacheSize | ) |