![]() |
Online Maps
v3
|
Base class for cache atlas. More...
Public Member Functions | |
CacheAtlas () | |
Constructor More... | |
bool | Contains (string filename) |
Checks whether the atlas contains the specified file. More... | |
abstract T | CreateItem (string filename, int size, long time) |
Creates a new item. More... | |
abstract void | DeleteOldItems (OnlineMapsCache cache) |
Deletes old items. More... | |
void | Load (OnlineMapsCache cache) |
Loads the atlas from the cache. More... | |
void | Save (OnlineMapsCache cache) |
Saves the atlas. More... | |
Protected Attributes | |
int | capacity = 256 |
Capacity of the atlas. More... | |
int | count = 0 |
Count of items in the atlas. More... | |
T[] | items |
Items of the atlas. More... | |
Static Protected Attributes | |
const short | ATLAS_VERSION = 1 |
Version of the atlas. More... | |
Properties | |
abstract string | atlasName [get] |
Name of the atlas. More... | |
int | size [get, protected set] |
Size of the atlas. More... | |
OnlineMapsCache.CacheAtlas< T >.CacheAtlas | ( | ) |
Constructor
bool OnlineMapsCache.CacheAtlas< T >.Contains | ( | string | filename | ) |
Checks whether the atlas contains the specified file.
filename | Name of the file |
|
pure virtual |
Creates a new item.
filename | Name of the file |
size | Size of the file |
time | Creation time |
Implemented in OnlineMapsCache.FileCacheAtlas, and OnlineMapsCache.CustomCacheAtlas.
|
pure virtual |
Deletes old items.
cache | Cache |
Implemented in OnlineMapsCache.FileCacheAtlas, and OnlineMapsCache.CustomCacheAtlas.
void OnlineMapsCache.CacheAtlas< T >.Load | ( | OnlineMapsCache | cache | ) |
Loads the atlas from the cache.
cache | Cache |
void OnlineMapsCache.CacheAtlas< T >.Save | ( | OnlineMapsCache | cache | ) |
Saves the atlas.
cache | Cache |
|
staticprotected |
Version of the atlas.
|
protected |
Capacity of the atlas.
|
protected |
Count of items in the atlas.
|
protected |
Items of the atlas.
|
getprotected |
Name of the atlas.
|
getprotected set |
Size of the atlas.