Osmium  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs > Class Template Reference

#include <coordinates_for_ways.hpp>

Inheritance diagram for Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >:
Inheritance graph
[legend]
Collaboration diagram for Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >:
Collaboration graph
[legend]

List of all members.

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).

Detailed Description

template<class TStoragePosIDs, class TStorageNegIDs>
class Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >

Handler to retrieve locations from nodes and add them to ways.

Template Parameters:
TStorageClass that handles the actual storage of the node locations. It must support the set(id, value) method and operator[] for reading a value.

Constructor & Destructor Documentation

template<class TStoragePosIDs , class TStorageNegIDs >
Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::CoordinatesForWays ( TStoragePosIDs &  storage_pos,
TStorageNegIDs &  storage_neg 
) [inline]

Member Function Documentation

template<class TStoragePosIDs , class TStorageNegIDs >
void Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::after_nodes ( ) const [inline]

Reimplemented from Osmium::Handler::Base.

template<class TStoragePosIDs , class TStorageNegIDs >
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.

template<class TStoragePosIDs , class TStorageNegIDs >
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.


Member Data Documentation

template<class TStoragePosIDs , class TStorageNegIDs >
TStorageNegIDs& Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::m_storage_neg [private]

Object that handles the actual storage of the node locations (with negative IDs).

template<class TStoragePosIDs , class TStorageNegIDs >
TStoragePosIDs& Osmium::Handler::CoordinatesForWays< TStoragePosIDs, TStorageNegIDs >::m_storage_pos [private]

Object that handles the actual storage of the node locations (with positive IDs).


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines