Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <node_locations_for_ways.hpp>
Public Types | |
using | index_pos_type = TStoragePosIDs |
using | index_neg_type = TStorageNegIDs |
Public Member Functions | |
NodeLocationsForWays (TStoragePosIDs &storage_pos, TStorageNegIDs &storage_neg=get_dummy()) noexcept | |
NodeLocationsForWays (const NodeLocationsForWays &)=delete | |
NodeLocationsForWays & | operator= (const NodeLocationsForWays &)=delete |
NodeLocationsForWays (NodeLocationsForWays &&) noexcept=default | |
NodeLocationsForWays & | operator= (NodeLocationsForWays &&) noexcept=default |
~NodeLocationsForWays () noexcept=default | |
void | ignore_errors () |
TStoragePosIDs & | storage_pos () noexcept |
TStorageNegIDs & | storage_neg () noexcept |
void | node (const osmium::Node &node) |
osmium::Location | get_node_location (const osmium::object_id_type id) const |
void | way (osmium::Way &way) |
void | clear () |
Public Member Functions inherited from osmium::handler::Handler | |
void | osm_object (const osmium::OSMObject &) const noexcept |
void | node (const osmium::Node &) const noexcept |
void | way (const osmium::Way &) const noexcept |
void | relation (const osmium::Relation &) const noexcept |
void | area (const osmium::Area &) const noexcept |
void | changeset (const osmium::Changeset &) const noexcept |
void | tag_list (const osmium::TagList &) const noexcept |
void | way_node_list (const osmium::WayNodeList &) const noexcept |
void | relation_member_list (const osmium::RelationMemberList &) const noexcept |
void | outer_ring (const osmium::OuterRing &) const noexcept |
void | inner_ring (const osmium::InnerRing &) const noexcept |
void | changeset_discussion (const osmium::ChangesetDiscussion &) const noexcept |
void | flush () const noexcept |
Private Types | |
template<typename T > | |
using | based_on_map = std::is_base_of< osmium::index::map::Map< osmium::unsigned_object_id_type, osmium::Location >, T > |
Static Private Member Functions | |
static dummy_type & | get_dummy () |
Private Attributes | |
TStoragePosIDs & | m_storage_pos |
Object that handles the actual storage of the node locations (with positive IDs). More... | |
TStorageNegIDs & | m_storage_neg |
Object that handles the actual storage of the node locations (with negative IDs). More... | |
osmium::unsigned_object_id_type | m_last_id = 0 |
bool | m_ignore_errors = false |
bool | m_must_sort = false |
Handler to retrieve locations from nodes and add them to ways.
TStoragePosIDs | Class that handles the actual storage of the node locations (for positive IDs). It must support the set(id, value) and get(id) methods. |
TStorageNegIDs | Same but for negative IDs. |
|
private |
using osmium::handler::NodeLocationsForWays< TStoragePosIDs, TStorageNegIDs >::index_neg_type = TStorageNegIDs |
using osmium::handler::NodeLocationsForWays< TStoragePosIDs, TStorageNegIDs >::index_pos_type = TStoragePosIDs |
|
inlineexplicitnoexcept |
|
delete |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
Call clear on the location indexes. Makes the NodeLocationsForWays handler unusable. Used to explicitly free memory if thats needed.
|
inlinestaticprivate |
|
inline |
Get location of node with given id.
|
inline |
|
inline |
Store the location of the node in the storage.
|
delete |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Retrieve locations of all nodes in the way from storage and add them to the way object.
|
private |
|
private |
|
private |
|
private |
Object that handles the actual storage of the node locations (with negative IDs).
|
private |
Object that handles the actual storage of the node locations (with positive IDs).