Osmium
0.1
|
#include <coordinates_for_ways.hpp>
Public Member Functions | |
CoordinatesForWays (TStoragePosIDs &storage_pos, TStorageNegIDs &storage_neg) | |
void | node (const shared_ptr< Osmium::OSM::Node const > &node) |
void | after_nodes () const |
void | way (const shared_ptr< Osmium::OSM::Way > &way) |
Private Attributes | |
TStoragePosIDs & | m_storage_pos |
Object that handles the actual storage of the node locations (with positive IDs). | |
TStorageNegIDs & | m_storage_neg |
Object that handles the actual storage of the node locations (with negative IDs). |
Handler to retrieve locations from nodes and add them to ways.
TStorage | Class that handles the actual storage of the node locations. It must support the set(id, value) method and operator[] for reading a value. |
Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::CoordinatesForWays | ( | TStoragePosIDs & | storage_pos, |
TStorageNegIDs & | storage_neg | ||
) | [inline] |
void Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::after_nodes | ( | ) | const [inline] |
Reimplemented from Osmium::Handler::Base.
void Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::node | ( | const shared_ptr< Osmium::OSM::Node const > & | node | ) | [inline] |
Store the location of the node in the storage.
void Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::way | ( | const shared_ptr< Osmium::OSM::Way > & | way | ) | [inline] |
Retrieve locations of all nodes in the way from storage and add them to the way object.
TStorageNegIDs& Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::m_storage_neg [private] |
Object that handles the actual storage of the node locations (with negative IDs).
TStoragePosIDs& Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::m_storage_pos [private] |
Object that handles the actual storage of the node locations (with positive IDs).