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

#include <PointKDTree.h>

Public Member Functions

 Handle ()
 
 Handle (const T &v)
 
void setPosition (const Vector3 &v)
 
const Vector3position () const
 

Public Attributes

value
 

Private Attributes

Vector3 m_position
 

Constructor & Destructor Documentation

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Handle::Handle ( )
inline
117 {}
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Handle::Handle ( const T &  v)
inline
118  : value(v) {
119  PositionFunc::getPosition(v, m_position);
120  }
Vector3 m_position
Definition: PointKDTree.h:112
T value
Definition: PointKDTree.h:115

Member Function Documentation

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
const Vector3& G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Handle::position ( ) const
inline
127  {
128  return m_position;
129  }
Vector3 m_position
Definition: PointKDTree.h:112

+ Here is the caller graph for this function:

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
void G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Handle::setPosition ( const Vector3 v)
inline

Used by makeNode to create fake handles for partitioning.

123  {
124  m_position = v;
125  }
Vector3 m_position
Definition: PointKDTree.h:112

+ Here is the caller graph for this function:

Member Data Documentation

template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
Vector3 G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Handle::m_position
private
template<class T , class PositionFunc = PositionTrait<T>, class HashFunc = HashTrait<T>, class EqualsFunc = EqualsTrait<T>>
T G3D::PointKDTree< T, PositionFunc, HashFunc, EqualsFunc >::Handle::value

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