Osmium  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
Osmium::Storage::ObjectStore::ApplyHandler< THandler > Class Template Reference

#include <objectstore.hpp>

Inheritance diagram for Osmium::Storage::ObjectStore::ApplyHandler< THandler >:
Inheritance graph
[legend]
Collaboration diagram for Osmium::Storage::ObjectStore::ApplyHandler< THandler >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ApplyHandler (ObjectStore &os, THandler *handler, Osmium::OSM::Meta &meta)
void init (const Osmium::OSM::Meta &)
void node (const shared_ptr< Osmium::OSM::Node > &node)
void after_nodes ()
void way (const shared_ptr< Osmium::OSM::Way > &way)
void after_ways ()
void relation (const shared_ptr< Osmium::OSM::Relation > &relation)
void after_relations ()

Private Attributes

ObjectStorem_object_store
THandler * m_handler
Osmium::OSM::Metam_meta
ObjectStore::nodeset::iterator m_nodes_iter
ObjectStore::nodeset::iterator m_nodes_end
ObjectStore::wayset::iterator m_ways_iter
ObjectStore::wayset::iterator m_ways_end
ObjectStore::relationset::iterator m_relations_iter
ObjectStore::relationset::iterator m_relations_end

Detailed Description

template<class THandler>
class Osmium::Storage::ObjectStore::ApplyHandler< THandler >

Handler that inserts objects from the store in the right position in the stream of objects it gets and forwards all objects to another handler.

Do not change the object store while this handler is active.


Constructor & Destructor Documentation

template<class THandler >
Osmium::Storage::ObjectStore::ApplyHandler< THandler >::ApplyHandler ( ObjectStore os,
THandler *  handler,
Osmium::OSM::Meta meta 
) [inline]

Member Function Documentation

template<class THandler >
void Osmium::Storage::ObjectStore::ApplyHandler< THandler >::after_nodes ( ) [inline]
template<class THandler >
void Osmium::Storage::ObjectStore::ApplyHandler< THandler >::after_relations ( ) [inline]
template<class THandler >
void Osmium::Storage::ObjectStore::ApplyHandler< THandler >::after_ways ( ) [inline]
template<class THandler >
void Osmium::Storage::ObjectStore::ApplyHandler< THandler >::init ( const Osmium::OSM::Meta ) [inline]
template<class THandler >
void Osmium::Storage::ObjectStore::ApplyHandler< THandler >::node ( const shared_ptr< Osmium::OSM::Node > &  node) [inline]
template<class THandler >
void Osmium::Storage::ObjectStore::ApplyHandler< THandler >::relation ( const shared_ptr< Osmium::OSM::Relation > &  relation) [inline]
template<class THandler >
void Osmium::Storage::ObjectStore::ApplyHandler< THandler >::way ( const shared_ptr< Osmium::OSM::Way > &  way) [inline]

Member Data Documentation

template<class THandler >
THandler* Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_handler [private]
template<class THandler >
Osmium::OSM::Meta& Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_meta [private]
template<class THandler >
ObjectStore::nodeset::iterator Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_nodes_end [private]
template<class THandler >
ObjectStore::nodeset::iterator Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_nodes_iter [private]
template<class THandler >
ObjectStore& Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_object_store [private]
template<class THandler >
ObjectStore::relationset::iterator Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_relations_end [private]
template<class THandler >
ObjectStore::relationset::iterator Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_relations_iter [private]
template<class THandler >
ObjectStore::wayset::iterator Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_ways_end [private]
template<class THandler >
ObjectStore::wayset::iterator Osmium::Storage::ObjectStore::ApplyHandler< THandler >::m_ways_iter [private]

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