vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator Struct Reference

#include <perfect_spatial_hashing.h>

List of all members.

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
UniformGridm_UniformGrid

Friends

class UniformGrid

Detailed Description

template<class OBJECT_TYPE, class SCALAR_TYPE>
struct vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator

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.


Constructor & Destructor Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
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.


Member Function Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
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.

template<class OBJECT_TYPE , class SCALAR_TYPE >
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.

template<class OBJECT_TYPE , class SCALAR_TYPE >
std::vector< ObjectPointer >* vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::operator* (  )  [inline]

Dereferencing operator.

Returns:
The pointer to the vector of the objects contained in the cell pointed to by the iterator.

Definition at line 251 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
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.

template<class OBJECT_TYPE , class SCALAR_TYPE >
void vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::operator= ( const EntryIterator it  )  [inline]

Copy operator.

Parameters:
[in] it The iterator whose value has to be copied.

Definition at line 225 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
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.


Friends And Related Function Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
friend class UniformGrid [friend]

Definition at line 191 of file perfect_spatial_hashing.h.


Member Data Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
CellCoordinate vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::m_CurrentPosition [protected]

Definition at line 267 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
UniformGrid* vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::UniformGrid::EntryIterator::m_UniformGrid [protected]

Definition at line 266 of file perfect_spatial_hashing.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:04 2013