1 #ifndef DELAUNATOR_VERTEX_ITERATORS_H_INCLUDED
2 #define DELAUNATOR_VERTEX_ITERATORS_H_INCLUDED
14 #include "iterators.h"
41 this->it = this->vertices->begin()+4;
50 return this->it != othr.it;
52 bool operator!=(
const std::vector<Vertex*>::iterator& ot)
const{
53 return this->it != ot;
60 std::vector<Vertex*>::iterator begin()
const {
return this->vertices->begin(); }
61 std::vector<Vertex*>::iterator end()
const {
return this->vertices->end(); }
62 std::vector<Vertex*>* getVertices()
const {
return this->vertices; }
65 std::vector<Vertex*>* vertices;
66 std::vector<Vertex*>::const_iterator it;
74 this->it = this->vertices->begin()+4;
83 return this->it != othr.it;
85 bool operator!=(
const std::vector<Vertex*>::const_iterator& ot)
const {
86 return this->it != ot;
93 std::vector<Vertex*>::const_iterator begin()
const {
return this->vertices->begin(); }
94 std::vector<Vertex*>::const_iterator end()
const {
return this->vertices->end(); }
95 const std::vector<Vertex*>*
const getVertices()
const {
return this->vertices; }
98 const std::vector<Vertex*>*
const vertices;
99 std::vector<Vertex*>::const_iterator it;
117 this->it = this->vertices->begin();
126 return this->it != othr.it;
128 bool operator!=(
const std::vector<Vertex*>::iterator& ot)
const{
129 return this->it != ot;
136 std::vector<Vertex*>::iterator begin()
const {
return this->vertices->begin(); }
137 std::vector<Vertex*>::iterator end()
const {
return this->vertices->end(); }
138 std::vector<Vertex*>* getVertices()
const {
return this->vertices; }
141 std::vector<Vertex*>* vertices;
142 std::vector<Vertex*>::const_iterator it;
149 this->it = this->vertices->begin();
158 return this->it != othr.it;
160 bool operator!=(
const std::vector<Vertex*>::const_iterator& ot)
const {
161 return this->it != ot;
168 std::vector<Vertex*>::const_iterator begin()
const {
return this->vertices->begin(); }
169 std::vector<Vertex*>::const_iterator end()
const {
return this->vertices->end(); }
170 const std::vector<Vertex*>*
const getVertices()
const {
return this->vertices; }
173 const std::vector<Vertex*>*
const vertices;
174 std::vector<Vertex*>::const_iterator it;
194 this->it = this->it->rotLeftEdge();
195 if(this->it == this->ref) this->it = NULL;
199 return this->it != othr.it;
202 return this->it == othr.it;
204 bool operator!=(
const Edge* ot)
const {
205 return this->it != ot;
207 bool operator==(
const Edge* ot)
const {
208 return this->it == ot;
212 return this->getItem();
215 Edge* end()
const {
return NULL; }
216 Vertex* getItem()
const {
return this->it->destinVertex(); }
240 this->it = this->it->rotLeftEdge();
241 if(this->it == this->ref) this->it = NULL;
245 return this->it != othr.it;
248 return this->it == othr.it;
250 bool operator!=(
const Edge* ot)
const {
251 return this->it != ot;
253 bool operator==(
const Edge* ot)
const {
254 return this->it == ot;
258 return this->getItem();
261 Edge* end()
const {
return NULL; }
262 Edge* getItem()
const {
return this->it; }