|  |  |  | libchamplain Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct ChamplainMemoryCache; ChamplainMemoryCache * champlain_memory_cache_new_full (guint size_limit,ChamplainRenderer *renderer); guint champlain_memory_cache_get_size_limit (ChamplainMemoryCache *memory_cache); void champlain_memory_cache_set_size_limit (ChamplainMemoryCache *memory_cache,guint size_limit); void champlain_memory_cache_clean (ChamplainMemoryCache *memory_cache);
  GObject
   +----GInitiallyUnowned
         +----ChamplainMapSource
               +----ChamplainTileCache
                     +----ChamplainMemoryCache
ChamplainMemoryCache is a cache that stores and retrieves tiles from the memory. The cache contents is not preserved between application restarts so this cache serves mostly as a quick access temporary cache to the most recently used tiles.
ChamplainMemoryCache * champlain_memory_cache_new_full (guint size_limit,ChamplainRenderer *renderer);
Constructor of ChamplainMemoryCache.
| 
 | maximal number of tiles stored in the cache | 
| 
 | the ChamplainRenderer used for tiles rendering | 
| Returns : | a constructed ChamplainMemoryCache | 
Since 0.8
guint               champlain_memory_cache_get_size_limit
                                                        (ChamplainMemoryCache *memory_cache);
Gets the maximal number of tiles stored in the cache.
| 
 | a ChamplainMemoryCache | 
| Returns : | maximal number of stored tiles | 
Since 0.8
void champlain_memory_cache_set_size_limit (ChamplainMemoryCache *memory_cache,guint size_limit);
Sets the maximal number of tiles stored in the cache.
| 
 | a ChamplainMemoryCache | 
| 
 | maximal number of tiles stored in the cache | 
Since 0.8
void                champlain_memory_cache_clean        (ChamplainMemoryCache *memory_cache);
Cleans the contents of the cache.
| 
 | a ChamplainMemoryCache | 
Since 0.8