mirror of https://github.com/CGAL/cgal
We know that it is bidirectional, and we prefer that to using const Vertex_handle&
This commit is contained in:
parent
be83ab856e
commit
46b756da12
|
|
@ -51,7 +51,7 @@ private:
|
||||||
: vertex_(vh), point_(vertex_->point()), input(input)
|
: vertex_(vh), point_(vertex_->point()), input(input)
|
||||||
{}
|
{}
|
||||||
const Point& point() const { return point_; }
|
const Point& point() const { return point_; }
|
||||||
const Vertex_handle& vertex() const { return vertex_; }
|
Vertex_handle vertex() const { return vertex_; }
|
||||||
private:
|
private:
|
||||||
Vertex_handle vertex_;
|
Vertex_handle vertex_;
|
||||||
Point point_;
|
Point point_;
|
||||||
|
|
@ -85,8 +85,8 @@ public:
|
||||||
Vertex_it
|
Vertex_it
|
||||||
, typename Vertex_list::skip_iterator
|
, typename Vertex_list::skip_iterator
|
||||||
, Vertex_handle
|
, Vertex_handle
|
||||||
, boost::use_default
|
, std::bidirectional_iterator_tag
|
||||||
, const Vertex_handle&>
|
, Vertex_handle>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Vertex_it() : Vertex_it::iterator_adaptor_() {}
|
Vertex_it() : Vertex_it::iterator_adaptor_() {}
|
||||||
|
|
@ -95,7 +95,7 @@ public:
|
||||||
bool& input() { return this->base()->input; }
|
bool& input() { return this->base()->input; }
|
||||||
private:
|
private:
|
||||||
friend class boost::iterator_core_access;
|
friend class boost::iterator_core_access;
|
||||||
const Vertex_handle& dereference() const { return this->base()->vertex(); }
|
Vertex_handle dereference() const { return this->base()->vertex(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef typename Constraint_list::iterator Constraint_it;
|
typedef typename Constraint_list::iterator Constraint_it;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue