Support Forum       G3D Web Page     
Public Member Functions | Friends | List of all members
G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator Class Reference


C++ STL style iterator variable. More...

Public Member Functions

 operator T* () const
 Overloaded cast operator so the iterator can masquerade as a pointer to a member. More...
 
bool operator!= (const BoxIntersectionIterator &other) const
 
const T & operator* () const
 Overloaded dereference operator so the iterator can masquerade as a pointer to a member. More...
 
BoxIntersectionIteratoroperator++ ()
 
Pre increment. More...
 
BoxIntersectionIterator operator++ (int)
 
Post increment (much slower than preincrement!). More...
 
T const * operator-> () const
 Overloaded dereference operator so the iterator can masquerade as a pointer to a member. More...
 
bool operator== (const BoxIntersectionIterator &other) const
 

Friends

class PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >
 

Detailed Description

template<class T, class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
class G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator


C++ STL style iterator variable.

See beginBoxIntersection(). The iterator overloads the -> (dereference) operator, so this acts like a pointer to the current member.

Member Function Documentation

◆ operator T*()

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator::operator T* ( ) const
inline

Overloaded cast operator so the iterator can masquerade as a pointer to a member.

◆ operator!=()

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
bool G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator::operator!= ( const BoxIntersectionIterator other) const
inline

◆ operator*()

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
const T& G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator::operator* ( ) const
inline

Overloaded dereference operator so the iterator can masquerade as a pointer to a member.

◆ operator++() [1/2]

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
BoxIntersectionIterator& G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator::operator++ ( )
inline


Pre increment.

◆ operator++() [2/2]

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
BoxIntersectionIterator G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator::operator++ ( int  )
inline


Post increment (much slower than preincrement!).

◆ operator->()

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
T const* G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator::operator-> ( ) const
inline

Overloaded dereference operator so the iterator can masquerade as a pointer to a member.

◆ operator==()

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
bool G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::BoxIntersectionIterator::operator== ( const BoxIntersectionIterator other) const
inline

Friends And Related Function Documentation

◆ PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
friend class PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >
friend

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