TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::CellObject Class Reference

#include <PointHashGrid.h>

Public Member Functions

AABox bounds () const
 
int size () const
 

Private Member Functions

 CellObject ()
 

Private Attributes

const CellIteratorm_parent
 

Friends

class CellIterator
 

Constructor & Destructor Documentation

template<class Value, class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::CellObject::CellObject ( )
inlineprivate
882 : m_parent(NULL) {}
arena_t NULL
Definition: jemalloc_internal.h:624
const CellIterator * m_parent
Definition: PointHashGrid.h:880

Member Function Documentation

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

Returns the bounds on this cell

887  {
888  const Vector3int32& k = m_parent->m_tableIterator->key;
889  return AABox(Vector3(k) * m_parent->m_grid->m_cellWidth,
890  Vector3(k + Vector3int32(1, 1, 1)) * m_parent->m_grid->m_cellWidth);
891  }
Vector3int32
Definition: Vector3int32.h:29
const CellIterator * m_parent
Definition: PointHashGrid.h:880
template<class Value, class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
int G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::CellObject::size ( ) const
inline

Number of elements inside this cell

894  {
895  debugAssert(! m_parent->m_isEnd);
896  return m_parent->m_tableIterator->value.size();
897  }
const CellIterator * m_parent
Definition: PointHashGrid.h:880
#define debugAssert(exp)
Definition: debugAssert.h:160
int size() const
Definition: PointHashGrid.h:894

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

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

Member Data Documentation

template<class Value, class PosFunc = PositionTrait<Value>, class EqualsFunc = EqualsTrait<Value>>
const CellIterator* G3D::PointHashGrid< Value, PosFunc, EqualsFunc >::CellIterator::CellObject::m_parent
private

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