added a const operator to the spatial hashing iterator
This commit is contained in:
parent
d6d380f09b
commit
266ddc1a42
|
@ -109,7 +109,8 @@ namespace vcg{
|
||||||
{
|
{
|
||||||
CellIterator(){}
|
CellIterator(){}
|
||||||
HashIterator t;
|
HashIterator t;
|
||||||
ObjPtr &operator *(){return t->second;}
|
ObjPtr &operator *(){return (t->second); }
|
||||||
|
ObjPtr operator *() const {return (t->second); }
|
||||||
bool operator != (const CellIterator & p) const {return t!=p.t;}
|
bool operator != (const CellIterator & p) const {return t!=p.t;}
|
||||||
void operator ++() {t++;}
|
void operator ++() {t++;}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue