Skip to content
Snippets Groups Projects
Commit 4b12ab4d authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL] Make class members private.

Moving them from protected section. All of the access
is now through public interface and these parts can
be hidden.
parent 69a7f3a4
No related branches found
No related tags found
No related merge requests found
...@@ -58,21 +58,22 @@ public: ...@@ -58,21 +58,22 @@ public:
/** returns the number of children */ /** returns the number of children */
std::size_t getNumberOfChildren() const { return _children.size(); } std::size_t getNumberOfChildren() const { return _children.size(); }
protected: private:
/** /**
* the polygon this node stands for * the polygon this node stands for
*/ */
Polygon* _node_polygon; 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 * list of polygons (represented by SimplePolygonTree nodes) contained
* in the _node_polygon * in the _node_polygon
*/ */
std::list<SimplePolygonTree*> _children; 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: public:
decltype(_children)::iterator begin() { return _children.begin(); } decltype(_children)::iterator begin() { return _children.begin(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment