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