![]() |
TrinityCore
|
#include <RegularGrid.h>
Inheritance diagram for RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >:Classes | |
| struct | Cell |
Public Types | |
| enum | { CELL_NUMBER = 64 } |
| typedef std::unordered_multimap< T const *, Node * > | MemberTable |
Public Member Functions | |
| void | insert (T const &value) |
| void | remove (T const &value) |
| void | balance () |
| bool | contains (T const &value) const |
| bool | empty () const |
| Node & | getGrid (int x, int y) |
| template<typename RayCallback > | |
| void | intersectRay (G3D::Ray const &ray, RayCallback &intersectCallback, float max_dist) |
| template<typename RayCallback > | |
| void | intersectRay (G3D::Ray const &ray, RayCallback &intersectCallback, float &max_dist, G3D::Vector3 const &end) |
| template<typename IsectCallback > | |
| void | intersectPoint (G3D::Vector3 const &point, IsectCallback &intersectCallback) |
| template<typename RayCallback > | |
| void | intersectZAllignedRay (G3D::Ray const &ray, RayCallback &intersectCallback, float &max_dist) |
| std::span< T const *const > | getObjects (int x, int y) const |
Public Attributes | |
| MemberTable | memberTable |
| std::unique_ptr< Node > | nodes [CELL_NUMBER][CELL_NUMBER] = { } |
Definition at line 39 of file RegularGrid.h.
| typedef std::unordered_multimap<T const*, Node*> RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >::MemberTable |
Definition at line 49 of file RegularGrid.h.
| anonymous enum |
| Enumerator | |
|---|---|
| CELL_NUMBER | |
Definition at line 43 of file RegularGrid.h.
|
inline |
|
inline |
Definition at line 87 of file RegularGrid.h.
|
inline |
|
inline |
Definition at line 104 of file RegularGrid.h.
|
inline |
Definition at line 215 of file RegularGrid.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 113 of file RegularGrid.h.
|
inline |
|
inline |
Definition at line 71 of file RegularGrid.h.
Here is the call graph for this function:
Here is the caller graph for this function:| MemberTable RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >::memberTable |
Definition at line 51 of file RegularGrid.h.
| std::unique_ptr<Node> RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc >::nodes[CELL_NUMBER][CELL_NUMBER] = { } |
Definition at line 52 of file RegularGrid.h.