alaCarte Maps
Renderer for OpenStreetMap tiles
Relation Class Reference

#include <relation.hpp>

Inheritance diagram for Relation:
GeoObject

Public Member Functions

 Relation ()=default
 
 Relation (const Relation &other)=default
 
 Relation (Relation &&other)=default
 
 Relation (const std::vector< NodeId > &nodeIDs, const DataMap< NodeId, CachedString > &nodeRoles, const std::vector< WayId > &wayIDs, const DataMap< WayId, CachedString > &wayRoles, const DataMap< CachedString, CachedString > &tags)
 This file is part of alaCarte. More...
 
virtual ~Relation ()=default
 
TESTABLE const std::vector< WayId > & getWayIDs () const
 
TESTABLE const std::vector< NodeId > & getNodeIDs () const
 
TESTABLE const CachedStringgetWayRole (WayId id) const
 
TESTABLE const CachedStringgetNodeRole (NodeId id) const
 
- Public Member Functions inherited from GeoObject
 GeoObject ()=default
 
 GeoObject (const GeoObject &other)=default
 
 GeoObject (GeoObject &&other)=default
 
 GeoObject (const DataMap< CachedString, CachedString > &tags)
 This file is part of alaCarte. More...
 
virtual ~GeoObject ()=default
 
TESTABLE const DataMap< CachedString, CachedString > & getTags () const
 Returns a map with key-to-tag-mapping for osm-tags. More...
 

Private Member Functions

template<typename Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< NodeIdnodeIDs
 
std::vector< WayIdwayIDs
 
DataMap< NodeId, CachedStringnodeRoles
 
DataMap< WayId, CachedStringwayRoles
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Member Functions inherited from GeoObject
template<typename Archive >
void serialize (Archive &ar, const unsigned int version)
 

Detailed Description

Definition at line 31 of file relation.hpp.

Constructor & Destructor Documentation

Relation::Relation ( )
default
Relation::Relation ( const Relation other)
default
Relation::Relation ( Relation &&  other)
default
Relation::Relation ( const std::vector< NodeId > &  nodeIDs,
const DataMap< NodeId, CachedString > &  nodeRoles,
const std::vector< WayId > &  wayIDs,
const DataMap< WayId, CachedString > &  wayRoles,
const DataMap< CachedString, CachedString > &  tags 
)

This file is part of alaCarte.

alaCarte is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

alaCarte is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with alaCarte. If not, see http://www.gnu.org/licenses/.

Copyright alaCarte 2012-2013 Simon Dreher, Florian Jacob, Tobias Kahlert, Patrick Niklaus, Bernhard Scheirle, Lisa Winter Maintainer: Lisa Winter

Definition at line 26 of file relation.cpp.

virtual Relation::~Relation ( )
virtualdefault

Member Function Documentation

const std::vector< NodeId > & Relation::getNodeIDs ( ) const

Definition at line 44 of file relation.cpp.

const CachedString & Relation::getNodeRole ( NodeId  id) const

Definition at line 55 of file relation.cpp.

const std::vector< WayId > & Relation::getWayIDs ( ) const

Definition at line 39 of file relation.cpp.

const CachedString & Relation::getWayRole ( WayId  id) const

Definition at line 49 of file relation.cpp.

template<typename Archive >
void Relation::serialize ( Archive ar,
const unsigned int  version 
)
inlineprivate

Definition at line 52 of file relation.hpp.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 34 of file relation.hpp.

Member Data Documentation

std::vector<NodeId> Relation::nodeIDs
private

Definition at line 61 of file relation.hpp.

DataMap<NodeId, CachedString> Relation::nodeRoles
private

Definition at line 63 of file relation.hpp.

std::vector<WayId> Relation::wayIDs
private

Definition at line 62 of file relation.hpp.

DataMap<WayId, CachedString> Relation::wayRoles
private

Definition at line 64 of file relation.hpp.


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