#include <relations_map.hpp>
Index for looking up parent relation IDs given a member relation ID or the other way around.
You can not instantiate such an index yourself, instead you need to instantiate a RelationsMapStash, fill it and then create an index from it:
...
}
...
...
osmium::unsigned_object_id_type member_id = ...;
...
});
...
Definition relation.hpp:161
Definition relations_map.hpp:313
RelationsMapIndex build_member_to_parent_index()
Definition relations_map.hpp:399
void add_members(const osmium::Relation &relation)
Definition relations_map.hpp:347
uint64_t unsigned_object_id_type
Type for OSM object (node, way, or relation) IDs where we only allow positive IDs.
Definition types.hpp:46
◆ map_type
◆ RelationsMapIndex() [1/4]
osmium::index::RelationsMapIndex::RelationsMapIndex |
( |
map_type && |
map | ) |
|
|
inlineexplicitprivate |
◆ RelationsMapIndex() [2/4]
osmium::index::RelationsMapIndex::RelationsMapIndex |
( |
| ) |
|
|
delete |
◆ RelationsMapIndex() [3/4]
◆ RelationsMapIndex() [4/4]
◆ ~RelationsMapIndex()
osmium::index::RelationsMapIndex::~RelationsMapIndex |
( |
| ) |
|
|
defaultnoexcept |
◆ empty()
bool osmium::index::RelationsMapIndex::empty |
( |
| ) |
const |
|
inlinenoexcept |
Is this index empty?
Complexity: Constant.
◆ for_each()
template<typename TFunc >
Find the given relation id in the index and call the given function with all related relation ids.
Complexity: Logarithmic in the number of elements in the index. (Lookup uses binary search.)
◆ for_each_parent()
template<typename TFunc >
Find the given relation id in the index and call the given function with all parent relation ids.
- Deprecated:
- Use for_each() instead.
Complexity: Logarithmic in the number of elements in the index. (Lookup uses binary search.)
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ size()
std::size_t osmium::index::RelationsMapIndex::size |
( |
| ) |
const |
|
inlinenoexcept |
How many entries are in this index?
Complexity: Constant.
◆ RelationsMapIndexes
◆ RelationsMapStash
◆ m_map
map_type osmium::index::RelationsMapIndex::m_map |
|
private |
The documentation for this class was generated from the following file: