rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvDefaultTileCache Class Reference

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

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

Inheritance diagram for IlvDefaultTileCache:
IlvTileCache

List of all members.

Public Member Functions

 IlvDefaultTileCache (IlInt size=5)
 Creates an instance of the default cache with the specified size.
virtual void controllerDeleted (IlvTileController *controller)
 Notifies the cache that the controller is going to be deleted.
IlInt getCacheSize () const
 Returns the cache size.
void setCacheSize (IlInt size)
 Sets the cache size.
virtual void tileAboutToLoad (IlvTile *tile)
 Called by a tile controller each time that a tile is about to be loaded.
virtual void tileCached (IlvTile *tile)
 Called each time a loaded tile has no longer a lock.
virtual void tileRetrieved (IlvTile *tile)
 Called each time that a cached tile is locked again.

Static Public Member Functions

static IlvDefaultTileCacheGetDefaultCache ()
 Returns a default cache instance that can be shared by several tile controllers.

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:
size The 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:
controller About 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:
size The 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:
tile The 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:
tile The tile to be cached.

Implements IlvTileCache.

virtual void IlvDefaultTileCache::tileRetrieved ( IlvTile tile  )  [virtual]

Called each time that a cached tile is locked again.

Parameters:
tile The tile that is retrieved from the cache by a tile controller.

Implements IlvTileCache.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, 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.