TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::_internal::Indirector< Type > Class Template Reference

#include <KDTree.h>

Public Member Functions

 Indirector (Type *h)
 
 Indirector ()
 
bool operator== (const Indirector &m) const
 
bool operator== (const Type &m) const
 
size_t hashCode () const
 

Public Attributes

Typehandle
 

Detailed Description

template<class Type>
class G3D::_internal::Indirector< Type >

Wraps a pointer value so that it can be treated as the instance itself; convenient for inserting pointers into a Table but using the object equality instead of pointer equality.

Constructor & Destructor Documentation

template<class Type>
G3D::_internal::Indirector< Type >::Indirector ( Type h)
inline
104 : handle(h) {}
Type * handle
Definition: KDTree.h:102
template<class Type>
G3D::_internal::Indirector< Type >::Indirector ( )
inline
106 : handle(NULL) {}
arena_t NULL
Definition: jemalloc_internal.h:624
Type * handle
Definition: KDTree.h:102

Member Function Documentation

template<class Type>
size_t G3D::_internal::Indirector< Type >::hashCode ( ) const
inline
117  {
118  return handle->hashCode();
119  }
Type * handle
Definition: KDTree.h:102

+ Here is the caller graph for this function:

template<class Type>
bool G3D::_internal::Indirector< Type >::operator== ( const Indirector< Type > &  m) const
inline

Returns true iff the values referenced by the handles are equivalent.

109  {
110  return *handle == *(m.handle);
111  }
Type * handle
Definition: KDTree.h:102
template<class Type>
bool G3D::_internal::Indirector< Type >::operator== ( const Type m) const
inline
113  {
114  return *handle == m;
115  }
Type * handle
Definition: KDTree.h:102

Member Data Documentation

template<class Type>
Type* G3D::_internal::Indirector< Type >::handle

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