mirror of https://github.com/CGAL/cgal
- Add missing operator==(NULL) for Facet_circulator.
This commit is contained in:
parent
f5ecb3ff85
commit
a9e6fec929
|
|
@ -191,6 +191,7 @@ operator!=(typename Tds_::Cell_handle ch, Triangulation_ds_cell_circulator_3<Tds
|
||||||
return !(cc==ch);
|
return !(cc==ch);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template < class Tds_ >
|
template < class Tds_ >
|
||||||
class Triangulation_ds_facet_circulator_3
|
class Triangulation_ds_facet_circulator_3
|
||||||
: public Bidirectional_circulator_base<typename Tds_::Facet,
|
: public Bidirectional_circulator_base<typename Tds_::Facet,
|
||||||
|
|
@ -357,6 +358,17 @@ public:
|
||||||
return ! (*this == ccir);
|
return ! (*this == ccir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator==(CGAL_NULL_TYPE c) const
|
||||||
|
{
|
||||||
|
CGAL_triangulation_assertion(c == CGAL_CIRC_NULL);
|
||||||
|
return pos == Cell_handle();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator!=(CGAL_NULL_TYPE c) const
|
||||||
|
{
|
||||||
|
return ! (*this == c);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Vertex_handle _s; // source vertex of the edge
|
Vertex_handle _s; // source vertex of the edge
|
||||||
Vertex_handle _t; // target vertex of the edge
|
Vertex_handle _t; // target vertex of the edge
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,8 @@ _test_circulator( const Triangulation &T )
|
||||||
assert( fit->second != (fit->first)->index(vh) );
|
assert( fit->second != (fit->first)->index(vh) );
|
||||||
}
|
}
|
||||||
|
|
||||||
Facet_circulator fc, fc0;
|
Facet_circulator fc, fc0, fc1;
|
||||||
|
assert(fc1 == 0);
|
||||||
int i,j;
|
int i,j;
|
||||||
// for (eit=T.edges_begin(); eit!=T.edges_end(); eit++)
|
// for (eit=T.edges_begin(); eit!=T.edges_end(); eit++)
|
||||||
eit=T.edges_begin(); // test (edge)
|
eit=T.edges_begin(); // test (edge)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue