Rogue Wave Views
Maps Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Static Public Member Functions
IlvDefaultTileCache Class Reference

The default cache of the tile controllers. More...

#include <ilviews/maps/tiling/tilecache.h>

Inheritance diagram for IlvDefaultTileCache:
IlvTileCache

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 IlvDefaultTileCacheGetDefaultCache ()
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

§ IlvDefaultTileCache()

IlvDefaultTileCache::IlvDefaultTileCache ( IlInt  size = 5)

Initializes a new IlvDefaultTileCache instance with the specified size.

Parameters
sizeThe default cache size.

Member Function Documentation

§ controllerDeleted()

virtual void IlvDefaultTileCache::controllerDeleted ( IlvTileController controller)
virtual

Notifies the cache that the controller is going to be deleted.

Parameters
controllerAbout to be deleted.

Implements IlvTileCache.

§ getCacheSize()

IlInt IlvDefaultTileCache::getCacheSize ( ) const

Returns the cache size.

Returns
The cache size.

§ GetDefaultCache()

static IlvDefaultTileCache* IlvDefaultTileCache::GetDefaultCache ( )
static

Returns a default cache instance that can be shared by several tile controllers.

Returns
The default cache instance.

§ setCacheSize()

void IlvDefaultTileCache::setCacheSize ( IlInt  size)

Sets the cache size.

Parameters
sizeThe new cache size.

§ tileAboutToLoad()

virtual void IlvDefaultTileCache::tileAboutToLoad ( IlvTile tile)
virtual

Called by a tile controller each time that a tile is about to be loaded.

The cache can then, if necessary, release tiles.

Parameters
tileThe tile that is about to be loaded.

Implements IlvTileCache.

§ tileCached()

virtual void IlvDefaultTileCache::tileCached ( IlvTile tile)
virtual

Called each time a loaded tile has no longer a lock.

Parameters
tileThe tile to be cached.

Implements IlvTileCache.

§ tileRetrieved()

virtual void IlvDefaultTileCache::tileRetrieved ( IlvTile tile)
virtual

Called each time that a cached tile is locked again.

Parameters
tileThe 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.