mirror of https://github.com/CGAL/cgal
Remove the useless point_ data member
This commit is contained in:
parent
0e5517b15a
commit
b1df25dcf6
|
|
@ -52,14 +52,12 @@ private:
|
||||||
class Node {
|
class Node {
|
||||||
public:
|
public:
|
||||||
explicit Node(Vertex_handle vh, bool input = false)
|
explicit Node(Vertex_handle vh, bool input = false)
|
||||||
: vertex_(vh), point_(vh->point()), id(-1), input(input)
|
: vertex_(vh), id(-1), input(input)
|
||||||
{}
|
{}
|
||||||
Point& point() { return point_; }
|
const Point& point() const { return vertex_->point(); }
|
||||||
const Point& point() const { return point_; }
|
|
||||||
Vertex_handle vertex() const { return vertex_; }
|
Vertex_handle vertex() const { return vertex_; }
|
||||||
private:
|
private:
|
||||||
Vertex_handle vertex_;
|
Vertex_handle vertex_;
|
||||||
Point point_;
|
|
||||||
public:
|
public:
|
||||||
int id;
|
int id;
|
||||||
bool input;
|
bool input;
|
||||||
|
|
@ -74,7 +72,7 @@ public:
|
||||||
: public boost::iterator_adaptor<
|
: public boost::iterator_adaptor<
|
||||||
Point_it
|
Point_it
|
||||||
, typename Vertex_list::all_iterator
|
, typename Vertex_list::all_iterator
|
||||||
, Point
|
, const Point
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -82,7 +80,7 @@ public:
|
||||||
Point_it(typename Vertex_list::all_iterator it) : Point_it::iterator_adaptor_(it) {}
|
Point_it(typename Vertex_list::all_iterator it) : Point_it::iterator_adaptor_(it) {}
|
||||||
private:
|
private:
|
||||||
friend class boost::iterator_core_access;
|
friend class boost::iterator_core_access;
|
||||||
Point& dereference() const { return this->base()->point(); }
|
const Point& dereference() const { return this->base()->point(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
// only nodes with a vertex_handle that is still in the triangulation
|
// only nodes with a vertex_handle that is still in the triangulation
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue