libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::Tile Class Reference

Result of a cache lookup. More...

#include <DataTileCache.h>

Public Member Functions

const TileAreaDataGetAreaData () const
 Return a read-only reference to the area data. More...
 
TileAreaDataGetAreaData ()
 Return a read-write reference to the area data. More...
 
GeoBox GetBoundingBox () const
 Return the boundingbox of the tile (shortcut for GetId().GetBoundingBox()) More...
 
TileId GetId () const
 Return the id of the tile. More...
 
const TileNodeDataGetNodeData () const
 Return a read-only reference to the node data. More...
 
TileNodeDataGetNodeData ()
 Return a read-write reference to the node data. More...
 
const TileAreaDataGetOptimizedAreaData () const
 Return a read-only reference to the optimized area data. More...
 
TileAreaDataGetOptimizedAreaData ()
 Return a read-write reference to the optimized area data. More...
 
const TileWayDataGetOptimizedWayData () const
 Return a read-only reference to the optimized way data. More...
 
TileWayDataGetOptimizedWayData ()
 Return a read-write reference to the optimized way data. More...
 
const TileWayDataGetWayData () const
 Return a read-only reference to the way data. More...
 
TileWayDataGetWayData ()
 Return a read-write reference to the way data. More...
 
bool IsComplete () const
 Return 'true' if no data at all has been assigned. More...
 
bool IsEmpty () const
 Return 'true' if no data for any type has been assigned. More...
 
 ~Tile ()
 

Friends

class DataTileCache
 

Detailed Description

Result of a cache lookup.

If there is a cache hit, data is set, else data is null and you must load and add it to the cache afterwards.

Constructor & Destructor Documentation

osmscout::Tile::~Tile ( )

Member Function Documentation

const TileAreaData& osmscout::Tile::GetAreaData ( ) const
inline

Return a read-only reference to the area data.

TileAreaData& osmscout::Tile::GetAreaData ( )
inline

Return a read-write reference to the area data.

GeoBox osmscout::Tile::GetBoundingBox ( ) const
inline

Return the boundingbox of the tile (shortcut for GetId().GetBoundingBox())

Referenced by osmscout::DataTileCache::PrefillDataFromCache().

TileId osmscout::Tile::GetId ( ) const
inline

Return the id of the tile.

Referenced by osmscout::DataTileCache::PrefillDataFromCache().

const TileNodeData& osmscout::Tile::GetNodeData ( ) const
inline

Return a read-only reference to the node data.

TileNodeData& osmscout::Tile::GetNodeData ( )
inline

Return a read-write reference to the node data.

const TileAreaData& osmscout::Tile::GetOptimizedAreaData ( ) const
inline

Return a read-only reference to the optimized area data.

TileAreaData& osmscout::Tile::GetOptimizedAreaData ( )
inline

Return a read-write reference to the optimized area data.

const TileWayData& osmscout::Tile::GetOptimizedWayData ( ) const
inline

Return a read-only reference to the optimized way data.

TileWayData& osmscout::Tile::GetOptimizedWayData ( )
inline

Return a read-write reference to the optimized way data.

const TileWayData& osmscout::Tile::GetWayData ( ) const
inline

Return a read-only reference to the way data.

TileWayData& osmscout::Tile::GetWayData ( )
inline

Return a read-write reference to the way data.

bool osmscout::Tile::IsComplete ( ) const
inline

Return 'true' if no data at all has been assigned.

bool osmscout::Tile::IsEmpty ( ) const
inline

Return 'true' if no data for any type has been assigned.

Friends And Related Function Documentation

friend class DataTileCache
friend

The documentation for this class was generated from the following files: