diff --git a/GeoLib/SimplePolygonTree.h b/GeoLib/SimplePolygonTree.h index 7ceda36eac13ba487adfb266eb1324af082efa86..c15a6b6ecd14603df3639243ed9c58e4795ffe6b 100644 --- a/GeoLib/SimplePolygonTree.h +++ b/GeoLib/SimplePolygonTree.h @@ -58,21 +58,22 @@ public: /** returns the number of children */ std::size_t getNumberOfChildren() const { return _children.size(); } -protected: +private: /** * the polygon this node stands for */ Polygon* _node_polygon; - /** - * the polygon represented by this node is contained in the - * polygon represented by the parent node in the tree - */ - SimplePolygonTree* _parent; + /** * list of polygons (represented by SimplePolygonTree nodes) contained * in the _node_polygon */ std::list<SimplePolygonTree*> _children; + /** + * the polygon represented by this node is contained in the + * polygon represented by the parent node in the tree + */ + SimplePolygonTree* _parent; public: decltype(_children)::iterator begin() { return _children.begin(); }