Champlain.MemoryCache

g Champlain.MapSource Champlain.MapSource Champlain.TileCache Champlain.TileCache Champlain.MapSource->Champlain.TileCache Champlain.MemoryCache Champlain.MemoryCache Champlain.TileCache->Champlain.MemoryCache GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Champlain.MapSource GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

Champlain.TileCache (3), Champlain.MapSource (20), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new_full (size_limit, renderer)

clean ()

get_size_limit ()

set_size_limit (size_limit)

Virtual Methods

Inherited:

Champlain.TileCache (3), Champlain.MapSource (9), GObject.Object (7)

Properties

Inherited:

Champlain.MapSource (2)

Name

Type

Flags

Short Description

size-limit

int

r/w/c

Maximal number of stored tiles

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Champlain.TileCache

r

Class Details

class Champlain.MemoryCache(**kwargs)
Bases:

Champlain.TileCache

Abstract:

No

Structure:

Champlain.MemoryCacheClass

The Champlain.MemoryCache structure contains only private data and should be accessed using the provided API

New in version 0.8.

classmethod new_full(size_limit, renderer)
Parameters:
Returns:

a constructed Champlain.MemoryCache

Return type:

Champlain.MemoryCache

Constructor of Champlain.MemoryCache.

New in version 0.8.

clean()

Cleans the contents of the cache.

New in version 0.8.

get_size_limit()
Returns:

maximum number of stored tiles

Return type:

int

Gets the maximum number of tiles stored in the cache.

New in version 0.8.

set_size_limit(size_limit)
Parameters:

size_limit (int) – maximum number of tiles stored in the cache

Sets the maximum number of tiles stored in the cache.

New in version 0.8.

Property Details

Champlain.MemoryCache.props.size_limit
Name:

size-limit

Type:

int

Default Value:

100

Flags:

READABLE, WRITABLE, CONSTRUCT

The maximum number of tiles that are stored in the cache.

New in version 0.8.