1 #ifndef OSMIUM_INDEX_MULTIMAP_HPP 2 #define OSMIUM_INDEX_MULTIMAP_HPP 38 #include <type_traits> 50 template <
typename TId,
typename TValue>
74 virtual ~
Multimap() noexcept = default;
77 virtual
void set(const TId
id, const TValue value) = 0;
89 virtual
size_t size() const = 0;
104 virtual
void clear() = 0;
115 std::runtime_error(
"can't dump as list");
126 #endif // OSMIUM_INDEX_MULTIMAP_HPP virtual size_t size() const =0
element_type * iterator
Definition: multimap.hpp:79
virtual void set(const TId id, const TValue value)=0
Set the field with id to value.
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
virtual void dump_as_list(const int)
Definition: multimap.hpp:114
Definition: multimap.hpp:51
virtual size_t used_memory() const =0
TValue value_type
The "value" type, usually a Location or size_t.
Definition: multimap.hpp:67
virtual void sort()
Definition: multimap.hpp:110
typename std::pair< TId, TValue > element_type
Definition: multimap.hpp:54
TId key_type
The "key" type, usually osmium::unsigned_object_id_type.
Definition: multimap.hpp:64