Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <relations_map.hpp>
Public Member Functions | |
RelationsMapStash ()=default | |
RelationsMapStash (const RelationsMapStash &)=delete | |
RelationsMapStash & | operator= (const RelationsMapStash &)=delete |
RelationsMapStash (RelationsMapStash &&) noexcept(std::is_nothrow_move_constructible< map_type >::value) | |
RelationsMapStash & | operator= (RelationsMapStash &&) noexcept(std::is_nothrow_move_assignable< map_type >::value) |
~RelationsMapStash () noexcept=default | |
void | add (const osmium::unsigned_object_id_type member_id, const osmium::unsigned_object_id_type relation_id) |
void | add_members (const osmium::Relation &relation) |
bool | empty () const noexcept |
std::size_t | size () const noexcept |
RelationsMapIndex | build_index () |
RelationsMapIndex | build_member_to_parent_index () |
RelationsMapIndex | build_parent_to_member_index () |
RelationsMapIndexes | build_indexes () |
Private Types | |
using | map_type = detail::flat_map< osmium::unsigned_object_id_type, uint32_t, osmium::unsigned_object_id_type, uint32_t > |
Private Attributes | |
map_type | m_map |
bool | m_valid = true |
The RelationsMapStash is used to build up the data needed to create an index of member relation ID to parent relation ID or the other way around. See the RelationsMapIndex class for more.
|
private |
|
default |
|
delete |
|
inlinedefaultnoexcept |
|
defaultnoexcept |
|
inline |
Add mapping from member to parent relation in the stash.
|
inline |
Add mapping from all members to given parent relation in the stash.
|
inline |
Build an index for member to parent lookups from the contents of this stash and return it.
After you get the index you can not use the stash any more!
|
inline |
Build indexes for member-to-parent and parent-to-member lookups from the contents of this stash and return them.
After you get the index you can not use the stash any more!
|
inline |
Build an index for member to parent lookups from the contents of this stash and return it.
After you get the index you can not use the stash any more!
|
inline |
Build an index for parent to member lookups from the contents of this stash and return it.
After you get the index you can not use the stash any more!
|
inlinenoexcept |
Is this stash empty?
Complexity: Constant.
|
delete |
|
inlinedefaultnoexcept |
|
inlinenoexcept |
How many entries are in this stash?
Complexity: Constant.
|
private |
|
private |