libosmscout
0.1
|
#include <DataTileCache.h>
Public Member Functions | |
void | AddData (const TypeInfoSet &types, const std::vector< O > &data) |
Add data to the tile and mark the tile as completed. More... | |
void | AddPrefillData (const TypeInfoSet &types, const std::vector< O > &data) |
Assign data to the tile that was derived from existing tiles. More... | |
void | AddPrefillData (const TypeInfoSet &types, std::vector< O > &&data) |
Assign data to the tile that was derived from existing tiles. More... | |
void | CopyData (std::function< void(const O &)> function) const |
size_t | GetDataSize () const |
TypeInfoSet | GetTypes () const |
Return the list of types of the data stored in the tile. More... | |
void | Invalidate () |
Marks the tile as incomplete again, without actually clearing data and types. More... | |
bool | IsComplete () const |
Return 'true' if there was data already assigned to the tile. More... | |
bool | IsEmpty () const |
void | SetComplete () |
Mark the tile as completed (useful if prefill data is already complete and no more actual data has to be loaded) More... | |
void | SetData (const TypeInfoSet &types, const std::vector< O > &data) |
Assign data to the tile and mark the tile as completed. More... | |
void | SetData (const TypeInfoSet &types, std::vector< O > &&data) |
Assign data to the tile and mark the tile as completed. More... | |
TileData ()=default | |
Create an empty and unassigned TileData. More... | |
Template for storing sets of data of the same type in a tile. Normally data will either be NodeRef, WayRef or AreaRef.
|
default |
Create an empty and unassigned TileData.
|
inline |
Add data to the tile and mark the tile as completed.
|
inline |
Assign data to the tile that was derived from existing tiles.
Resets the list of loaded types to the list given.
|
inline |
Assign data to the tile that was derived from existing tiles.
Resets the list of loaded types to the list given. This version has move semantics for the data.
|
inline |
|
inline |
|
inline |
Return the list of types of the data stored in the tile.
Note that it is stll possibly that there is no acutal data for this type in the TileData stored.
|
inline |
Marks the tile as incomplete again, without actually clearing data and types.
|
inline |
Return 'true' if there was data already assigned to the tile.
Referenced by osmscout::Tile::IsComplete().
|
inline |
Referenced by osmscout::Tile::IsEmpty().
|
inline |
Mark the tile as completed (useful if prefill data is already complete and no more actual data has to be loaded)
|
inline |
Assign data to the tile and mark the tile as completed.
|
inline |
Assign data to the tile and mark the tile as completed.
This version has move semantics for the data.