GlsMap Toolkit  1.7.0
disti::AIFMapChartLayerCache Class Reference

#include <aif_map_chart_cache.h>

Classes

class  LayerCacheEntry
 

Public Member Functions

 AIFMapChartLayerCache (void)
 
virtual ~AIFMapChartLayerCache ()
 
virtual void UpdateLayer (const double resolution, const MapChartCellList &cellList)
 
virtual float GetCacheSize (void) const
 
virtual float GetCacheUsed ()
 
virtual void SetCacheSize (const float memSize)
 

Protected Member Functions

virtual float CurrentSizeMeg ()
 

Detailed Description

helper class for caching cells between layer changes

Constructor & Destructor Documentation

disti::AIFMapChartLayerCache::AIFMapChartLayerCache ( void  )
inline

Ctor

virtual disti::AIFMapChartLayerCache::~AIFMapChartLayerCache ( )
inlinevirtual

Dtor - releases all cached cells

Member Function Documentation

float AIFMapChartLayerCache::CurrentSizeMeg ( )
protectedvirtual
Returns
Current size of the cache
virtual float disti::AIFMapChartLayerCache::GetCacheSize ( void  ) const
inlinevirtual

Get the memory storage amount (Megabytes)

Returns
max number of layers to cache ( 0u if caching is disabled )
virtual float disti::AIFMapChartLayerCache::GetCacheUsed ( )
inlinevirtual
Returns
The amount of cache used. Calls CurrentSizeMeg()
void AIFMapChartLayerCache::SetCacheSize ( const float  memSize)
virtual

Set the memory storage amount (megabytes)

Parameters
memSizeMegabytes of the cache
void AIFMapChartLayerCache::UpdateLayer ( const double  resolution,
const MapChartCellList &  cellList 
)
virtual

update the given layer with the latest cells from GetCellList

Parameters
resolutionThe resolution of the given cell list
cellListlatest cells from GetCellList for the layer

The documentation for this class was generated from the following files: