Support Forum       G3D Web Page     
Classes | Public Member Functions | Friends | List of all members
G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator Class Reference

Dereference to access the bounds() and size() [element count] of the underlying cell object. More...

Classes

class  CellObject
 

Public Member Functions

bool isValid () const
 
 operator CellObject * () const
 
bool operator!= (const CellIterator &other) const
 
const CellObjectoperator* () const
 
CellIteratoroperator++ ()
 Preincrement. More...
 
CellIterator operator++ (int)
 Post increment (slower) More...
 
const CellObjectoperator-> () const
 
bool operator== (const CellIterator &other) const
 

Friends

class PointHashGrid< Value, PosFunc, EqualsFunc >
 

Detailed Description

template<class Value, class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
class G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator

Dereference to access the bounds() and size() [element count] of the underlying cell object.

Example:

for(PointHashGrid<Vector3>::CellIterator iter = grid.beginCells(); iter != grid.endCells(); ++iter) {    

entriesFound += iter->size(); }

Member Function Documentation

◆ isValid()

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
bool G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::isValid ( ) const
inline

◆ operator CellObject *()

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::operator CellObject * ( ) const
inline

◆ operator!=()

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
bool G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::operator!= ( const CellIterator other) const
inline

◆ operator*()

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
const CellObject& G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::operator* ( ) const
inline

◆ operator++() [1/2]

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
CellIterator& G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::operator++ ( )
inline

Preincrement.

◆ operator++() [2/2]

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
CellIterator G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::operator++ ( int  )
inline

Post increment (slower)

◆ operator->()

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
const CellObject* G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::operator-> ( ) const
inline

◆ operator==()

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
bool G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::operator== ( const CellIterator other) const
inline

Friends And Related Function Documentation

◆ PointHashGrid< Value, PosFunc, EqualsFunc >

template<class Value , class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
friend class PointHashGrid< Value, PosFunc, EqualsFunc >
friend

documentation generated on Wed Nov 24 2021 08:01:59 using doxygen 1.8.15