Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
The default cache of the tile controllers. More...
#include <ilviews/maps/tiling/tilecache.h>
Public Member Functions | |
IlvDefaultTileCache (IlInt size=5) | |
Initializes a new IlvDefaultTileCache instance with the specified size. More... | |
virtual void | controllerDeleted (IlvTileController *controller) |
Notifies the cache that the controller is going to be deleted. More... | |
IlInt | getCacheSize () const |
Returns the cache size. More... | |
void | setCacheSize (IlInt size) |
Sets the cache size. More... | |
virtual void | tileAboutToLoad (IlvTile *tile) |
Called by a tile controller each time that a tile is about to be loaded. More... | |
virtual void | tileCached (IlvTile *tile) |
Called each time a loaded tile has no longer a lock. More... | |
virtual void | tileRetrieved (IlvTile *tile) |
Called each time that a cached tile is locked again. More... | |
Public Member Functions inherited from IlvTileCache | |
void | lock () |
Called by the objects that use the cache. More... | |
void | unLock () |
Called by objects that stop using the cache. More... | |
Static Public Member Functions | |
static IlvDefaultTileCache * | GetDefaultCache () |
Returns a default cache instance that can be shared by several tile controllers. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IlvTileCache | |
IlvTileCache () | |
Initializes a new IlvTileCache instance. | |
virtual | ~IlvTileCache () |
Destructor. More... | |
void | releaseTile (IlvTile *tile) |
Releases a tile. More... | |
The default cache of the tile controllers.
Library: ilvmaps
This cache maintains a list of cached tiles. The maximum size of this list can be specified.
When the size of the cache is exceeded and a new tile is about to be loaded, the least recently used cached tiles are released.
IlvDefaultTileCache::IlvDefaultTileCache | ( | IlInt | size = 5 | ) |
Initializes a new IlvDefaultTileCache
instance with the specified size.
size | The default cache size. |
|
virtual |
Notifies the cache that the controller is going to be deleted.
controller | About to be deleted. |
Implements IlvTileCache.
IlInt IlvDefaultTileCache::getCacheSize | ( | ) | const |
Returns the cache size.
|
static |
Returns a default cache instance that can be shared by several tile controllers.
void IlvDefaultTileCache::setCacheSize | ( | IlInt | size | ) |
Sets the cache size.
size | The new cache size. |
|
virtual |
Called by a tile controller each time that a tile is about to be loaded.
The cache can then, if necessary, release tiles.
tile | The tile that is about to be loaded. |
Implements IlvTileCache.
|
virtual |
Called each time a loaded tile has no longer a lock.
tile | The tile to be cached. |
Implements IlvTileCache.
|
virtual |
Called each time that a cached tile is locked again.
tile | The tile that is retrieved from the cache by a tile controller. |
Implements IlvTileCache.
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.