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

#include <DataTileCache.h>

Public Member Functions

TileAreaDataGetAreaData ()
 Return a read-write reference to the area data. More...
 
const TileAreaDataGetAreaData () const
 Return a read-only reference to the area data. More...
 
GeoBox GetBoundingBox () const
 Return the bounding box of the tile. More...
 
TileKey GetKey () const
 Return the id of the tile. More...
 
uint32_t GetLevel () const
 Get the magnification level of the tile. More...
 
TileNodeDataGetNodeData ()
 Return a read-write reference to the node data. More...
 
const TileNodeDataGetNodeData () const
 Return a read-only reference to the node data. More...
 
TileAreaDataGetOptimizedAreaData ()
 Return a read-write reference to the optimized area data. More...
 
const TileAreaDataGetOptimizedAreaData () const
 Return a read-only reference to the optimized area data. More...
 
TileWayDataGetOptimizedWayData ()
 Return a read-write reference to the optimized way data. More...
 
const TileWayDataGetOptimizedWayData () const
 Return a read-only reference to the optimized way data. More...
 
TileRouteDataGetRouteData ()
 Return a read-write reference to the area data. More...
 
const TileRouteDataGetRouteData () const
 Return a read-only reference to the route data. More...
 
TileWayDataGetWayData ()
 Return a read-write reference to the way data. More...
 
const TileWayDataGetWayData () const
 Return a read-only 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 ()=default
 

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

◆ ~Tile()

osmscout::Tile::~Tile ( )
default

Member Function Documentation

◆ GetAreaData() [1/2]

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

Return a read-write reference to the area data.

◆ GetAreaData() [2/2]

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

Return a read-only reference to the area data.

◆ GetBoundingBox()

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

Return the bounding box of the tile.

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

◆ GetKey()

TileKey osmscout::Tile::GetKey ( ) const
inline

Return the id of the tile.

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

◆ GetLevel()

uint32_t osmscout::Tile::GetLevel ( ) const
inline

Get the magnification level of the tile.

References osmscout::TileKey::GetLevel().

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

◆ GetNodeData() [1/2]

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

Return a read-write reference to the node data.

◆ GetNodeData() [2/2]

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

Return a read-only reference to the node data.

◆ GetOptimizedAreaData() [1/2]

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

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

◆ GetOptimizedAreaData() [2/2]

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

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

◆ GetOptimizedWayData() [1/2]

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

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

◆ GetOptimizedWayData() [2/2]

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

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

◆ GetRouteData() [1/2]

TileRouteData& osmscout::Tile::GetRouteData ( )
inline

Return a read-write reference to the area data.

◆ GetRouteData() [2/2]

const TileRouteData& osmscout::Tile::GetRouteData ( ) const
inline

Return a read-only reference to the route data.

◆ GetWayData() [1/2]

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

Return a read-write reference to the way data.

◆ GetWayData() [2/2]

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

Return a read-only reference to the way data.

◆ IsComplete()

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

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

References osmscout::TileData< O >::IsComplete().

◆ IsEmpty()

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

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

References osmscout::TileData< O >::IsEmpty().

Friends And Related Function Documentation

◆ DataTileCache

friend class DataTileCache
friend

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