Skip to content

v0.2.52..v0.2.53 changeset Relation.h

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/elements/Relation.h b/hoot-core/src/main/cpp/hoot/core/elements/Relation.h
index ed46511..df915e7 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/Relation.h
+++ b/hoot-core/src/main/cpp/hoot/core/elements/Relation.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef RELATION_H
 #define RELATION_H
@@ -93,9 +93,15 @@ public:
   const std::vector<RelationData::Entry>& getMembers() const
   { return _relationData->getElements(); }
 
+  /**
+   * Returns the IDs of all way members
+   *
+   * @return a collection of element IDs
+   */
+  std::set<ElementId> getWayMemberIds() const;
+
   virtual geos::geom::Envelope* getEnvelope(
     const std::shared_ptr<const ElementProvider>& ep) const override;
-
   virtual const geos::geom::Envelope& getEnvelopeInternal(
     const std::shared_ptr<const ElementProvider>& ep) const override;
 
@@ -162,7 +168,6 @@ public:
   QString toString() const;
 
   virtual void visitRo(const ElementProvider& map, ConstElementVisitor& filter) const;
-
   virtual void visitRw(ElementProvider& map, ConstElementVisitor& filter);
 
 private:
@@ -170,14 +175,12 @@ private:
   std::shared_ptr<RelationData> _relationData;
 
   virtual ElementData& _getElementData() { _makeWritable(); return *_relationData; }
-
   virtual const ElementData& _getElementData() const { return *_relationData; }
 
   void _makeWritable();
 
   void _visitRo(const ElementProvider& map, ConstElementVisitor& filter,
     QList<long>& visitedRelations) const;
-
   void _visitRw(ElementProvider& map, ConstElementVisitor& filter,
     QList<long> &visitedRelations);
 };
Clone this wiki locally