1 #ifndef DELAUNATOR_EDGE_ITERATORS_H_INCLUDED
2 #define DELAUNATOR_EDGE_ITERATORS_H_INCLUDED
14 #include "iterators.h"
41 this->it = this->edges->begin();
43 while((*this->it)->isExternal()) this->it++;
49 return this->it != othr.it;
51 bool operator!=(
const std::vector<Edge*>::iterator& ot)
const {
52 return this->it != ot;
62 std::vector<Edge*>::iterator begin()
const {
return this->edges->begin(); }
63 std::vector<Edge*>::iterator end()
const {
return this->edges->end(); }
64 std::vector<Edge*>* getEdges()
const {
return this->edges; }
67 std::vector<Edge*>* edges;
68 std::vector<Edge*>::iterator it;
75 this->it = this->edges->begin();
77 while((*this->it)->isExternal()) this->it++;
83 return this->it != othr.it;
85 bool operator!=(
const std::vector<Edge*>::const_iterator& ot)
const {
86 return this->it != ot;
92 Edge* operator*()
const {
96 std::vector<Edge*>::const_iterator begin()
const {
return this->edges->begin(); }
97 std::vector<Edge*>::const_iterator end()
const {
return this->edges->end(); }
98 const std::vector<Edge*>* getEdges()
const {
return this->edges; }
101 const std::vector<Edge*>*
const edges;
102 std::vector<Edge*>::const_iterator it;
117 this->it = this->edges->begin();
123 return this->it != othr.it;
125 bool operator!=(
const std::vector<Edge*>::iterator& ot)
const {
126 return this->it != ot;
136 std::vector<Edge*>::iterator begin()
const {
return this->edges->begin(); }
137 std::vector<Edge*>::iterator end()
const {
return this->edges->end(); }
138 std::vector<Edge*>* getEdges()
const {
return this->edges; }
141 std::vector<Edge*>* edges;
142 std::vector<Edge*>::iterator it;
149 this->it = this->edges->begin();
155 return this->it != othr.it;
157 bool operator!=(
const std::vector<Edge*>::const_iterator& ot)
const {
158 return this->it != ot;
164 Edge* operator*()
const {
168 std::vector<Edge*>::const_iterator begin()
const {
return this->edges->begin(); }
169 std::vector<Edge*>::const_iterator end()
const {
return this->edges->end(); }
170 const std::vector<Edge*>* getEdges()
const {
return this->edges; }
173 const std::vector<Edge*>*
const edges;
174 std::vector<Edge*>::const_iterator it;