1313#include " idlist.hpp"
1414#include " osmtypes.hpp"
1515
16- #include < osmium/index/id_set.hpp>
17-
1816#include < cassert>
1917#include < memory>
2018#include < utility>
@@ -59,8 +57,7 @@ class dependency_manager_t
5957 virtual void after_ways () {}
6058 virtual void after_relations () {}
6159
62- virtual void mark_parent_relations_as_pending (
63- osmium::index::IdSetSmall<osmid_t > const & /* way_ids*/ )
60+ virtual void mark_parent_relations_as_pending (idlist_t const & /* way_ids*/ )
6461 {
6562 }
6663
@@ -112,8 +109,7 @@ class full_dependency_manager_t : public dependency_manager_t
112109 void after_ways () override ;
113110 void after_relations () override ;
114111
115- void mark_parent_relations_as_pending (
116- osmium::index::IdSetSmall<osmid_t > const &ids) override ;
112+ void mark_parent_relations_as_pending (idlist_t const &ids) override ;
117113
118114 bool has_pending () const noexcept override ;
119115
@@ -128,7 +124,7 @@ class full_dependency_manager_t : public dependency_manager_t
128124 }
129125
130126private:
131- static idlist_t get_ids (osmium::index::IdSetSmall< osmid_t > *tracker);
127+ static idlist_t get_ids (idlist_t *tracker);
132128
133129 std::shared_ptr<middle_t > m_object_store;
134130
@@ -140,7 +136,7 @@ class full_dependency_manager_t : public dependency_manager_t
140136 * the change file, too, and so we don't have to find out which ones they
141137 * are.
142138 */
143- osmium::index::IdSetSmall< osmid_t > m_changed_nodes;
139+ idlist_t m_changed_nodes;
144140
145141 /* *
146142 * In append mode all new and changed ways will be added to this. After
@@ -149,17 +145,17 @@ class full_dependency_manager_t : public dependency_manager_t
149145 * relations that referenced deleted ways must be in the change file, too,
150146 * and so we don't have to find out which ones they are.
151147 */
152- osmium::index::IdSetSmall< osmid_t > m_changed_ways;
148+ idlist_t m_changed_ways;
153149
154150 /* *
155151 * In append mode all new and changed relations will be added to this.
156152 * This is then used to remove already processed relations from the
157153 * pending list.
158154 */
159- osmium::index::IdSetSmall< osmid_t > m_changed_relations;
155+ idlist_t m_changed_relations;
160156
161- osmium::index::IdSetSmall< osmid_t > m_ways_pending_tracker;
162- osmium::index::IdSetSmall< osmid_t > m_rels_pending_tracker;
157+ idlist_t m_ways_pending_tracker;
158+ idlist_t m_rels_pending_tracker;
163159};
164160
165161#endif // OSM2PGSQL_DEPENDENCY_MANAGER_HPP
0 commit comments