TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator Class Reference

#include <PointKDTree.h>

Public Member Functions

bool operator!= (const Iterator &other) const
 
bool operator== (const Iterator &other) const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
const T & operator* () const
 
T * operator-> () const
 
 operator T * () const
 

Private Member Functions

 Iterator (const typename MemberTable::Iterator &it)
 

Private Attributes

MemberTable::Iterator it
 

Friends

class TreeType
 

Detailed Description

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

C++ STL style iterator variable. See begin(). Overloads the -> (dereference) operator, so this acts like a pointer to the current member.

Constructor & Destructor Documentation

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::Iterator ( const typename MemberTable::Iterator &  it)
inlineprivate
1123 : it(it) {}
MemberTable::Iterator it
Definition: PointKDTree.h:1121

Member Function Documentation

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::operator T * ( ) const
inline
1159  {
1160  return &(it->key);
1161  }
MemberTable::Iterator it
Definition: PointKDTree.h:1121
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
bool G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::operator!= ( const Iterator other) const
inline
1126  {
1127  return !(*this == other);
1128  }
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
const T& G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::operator* ( ) const
inline
1151  {
1152  return it->key;
1153  }
MemberTable::Iterator it
Definition: PointKDTree.h:1121
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
Iterator& G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::operator++ ( )
inline

Pre increment.

1137  {
1138  ++it;
1139  return *this;
1140  }
MemberTable::Iterator it
Definition: PointKDTree.h:1121
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
Iterator G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::operator++ ( int  )
inline

Post increment (slower than preincrement).

1145  {
1146  Iterator old = *this;
1147  ++(*this);
1148  return old;
1149  }
Iterator(const typename MemberTable::Iterator &it)
Definition: PointKDTree.h:1123
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
T* G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::operator-> ( ) const
inline
1155  {
1156  return &(it->key);
1157  }
MemberTable::Iterator it
Definition: PointKDTree.h:1121
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
bool G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::operator== ( const Iterator other) const
inline
1130  {
1131  return it == other.it;
1132  }
MemberTable::Iterator it
Definition: PointKDTree.h:1121

Friends And Related Function Documentation

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

Member Data Documentation

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
MemberTable::Iterator G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Iterator::it
private

The documentation for this class was generated from the following file: