alaCarte Maps
Renderer for OpenStreetMap tiles
tile_identifier.hpp File Reference
#include "settings.hpp"

Go to the source code of this file.

Classes

class  TileIdentifier
 A TileIdentifier identifies a Tile. More...
 

Macros

#define TILE_IDENTIFIER_HPP
 This file is part of alaCarte. More...
 

Functions

std::ostream & operator<< (std::ostream &out, const TileIdentifier &ti)
 toString method for TileIdentifier (overloading << operator). More...
 
std::size_t hash_value (const TileIdentifier &ti)
 Returns a hash for the TileIdentifier. More...
 
bool operator== (const TileIdentifier &a, const TileIdentifier &b)
 Equals operator for two TileIdentifiers. More...
 

Macro Definition Documentation

#define TILE_IDENTIFIER_HPP

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: Tobias Kahlert

Definition at line 23 of file tile_identifier.hpp.

Function Documentation

std::size_t hash_value ( const TileIdentifier ti)

Returns a hash for the TileIdentifier.

Returns
Hash usable for boost::unordered_map.

Definition at line 274 of file tile_identifier.cpp.

std::ostream& operator<< ( std::ostream &  out,
const TileIdentifier ti 
)

toString method for TileIdentifier (overloading << operator).

Parameters
outostream after that the representation is appended.
tiTileIdentifier whose representation shall be appended.
Returns
Returns an ostream with content of out and all attributes of the TileIdentifier.

Definition at line 260 of file tile_identifier.cpp.

bool operator== ( const TileIdentifier a,
const TileIdentifier b 
)

Equals operator for two TileIdentifiers.

Returns
True if TileIdentifiers have equal values.

Definition at line 290 of file tile_identifier.cpp.