#include <perfect_spatial_hashing.h>
Public Member Functions | |
EntryIterator (UniformGrid *uniform_grid, const CellCoordinate &position) | |
CellCoordinate | GetPosition () const |
bool | operator!= (const EntryIterator &it) const |
std::vector< ObjectPointer > * | operator* () |
void | operator++ (int) |
void | operator= (const EntryIterator &it) |
bool | operator== (const EntryIterator &it) const |
Protected Attributes | |
CellCoordinate | m_CurrentPosition |
UniformGrid * | m_UniformGrid |
Friends | |
class | UniformGrid |
This class provides a convenient way to iterate over the set of the grid cells.
Definition at line 189 of file perfect_spatial_hashing.h.
vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::EntryIterator | ( | UniformGrid * | uniform_grid, | |
const CellCoordinate & | position | |||
) | [inline] |
Default constructor
Definition at line 196 of file perfect_spatial_hashing.h.
CellCoordinate vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::GetPosition | ( | ) | const [inline] |
Return the index of the cell pointed to by the iterator.
Definition at line 259 of file perfect_spatial_hashing.h.
bool vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::operator!= | ( | const EntryIterator & | it | ) | const [inline] |
Diversity operator
Definition at line 242 of file perfect_spatial_hashing.h.
std::vector< ObjectPointer >* vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::operator* | ( | ) | [inline] |
Dereferencing operator.
Definition at line 251 of file perfect_spatial_hashing.h.
void vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::operator++ | ( | int | ) | [inline] |
Increment operator. Move the iterator to the next cell in the UniformGrid
Definition at line 206 of file perfect_spatial_hashing.h.
void vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::operator= | ( | const EntryIterator & | it | ) | [inline] |
Copy operator.
[in] | it | The iterator whose value has to be copied. |
Definition at line 225 of file perfect_spatial_hashing.h.
bool vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::operator== | ( | const EntryIterator & | it | ) | const [inline] |
Equivalence operator
Definition at line 234 of file perfect_spatial_hashing.h.
friend class UniformGrid [friend] |
Definition at line 191 of file perfect_spatial_hashing.h.
CellCoordinate vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::m_CurrentPosition [protected] |
Definition at line 267 of file perfect_spatial_hashing.h.
UniformGrid* vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::m_UniformGrid [protected] |
Definition at line 266 of file perfect_spatial_hashing.h.