rwlogo

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
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)
 Creates an instance of the default cache 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 ()
 Constructor. More...
 
virtual ~IlvTileCache ()
 Protected destructor of the IlvTileCache. More...
 
void releaseTile (IlvTile *tile)
 Releases a tile. The tile is deleted during this call. 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 ( IlInt  size = 5)

Creates an instance of the default cache with the specified size.

Parameters
sizeThe default cache size.

Member Function Documentation

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.

IlInt IlvDefaultTileCache::getCacheSize ( ) const

Returns the cache size.

Returns
The cache size.
static IlvDefaultTileCache* IlvDefaultTileCache::GetDefaultCache ( )
static

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

Returns
The default cache instance.
void IlvDefaultTileCache::setCacheSize ( IlInt  size)

Sets the cache size.

Parameters
sizeThe new cache size.
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.

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.

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 2015, 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.