[Tile-serving] [openstreetmap/osm2pgsql] New dependency manager (#1168)
Jochen Topf
notifications at github.com
Thu May 14 16:06:08 UTC 2020
@joto commented on this pull request.
> + *
+ * \tparam TOutputIterator Some output iterator type, for instance
+ * created with std::back_inserter(some vector).
+ * \param it output iterator to which all ids should be written. *it
+ * must be of type osmid_t.
+ */
+ template <typename TOutputIterator>
+ void get_pending_relation_ids(TOutputIterator &&it) {
+ osmid_t id;
+ while (id_tracker::is_valid(id = m_rels_pending_tracker.pop_mark())) {
+ *it++ = id;
+ }
+ }
+
+private:
+ middle_t* m_object_store;
Bare pointer is all we need here and we know the middle outlives the dependency manager.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1168#discussion_r425254508
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200514/a1689693/attachment.htm>
More information about the Tile-serving
mailing list