AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
NodeArray< Node > Class Template Reference

#include "RegularGrid.h"

Public Member Functions

 NodeArray ()
 
void AddNode (Node *n)
 

Public Attributes

Node * _nodes [9]
 

Detailed Description

template<class Node>
class NodeArray< Node >

Constructor & Destructor Documentation

◆ NodeArray()

template<class Node >
NodeArray< Node >::NodeArray ( )
inlineexplicit
14{ memset(&_nodes, 0, sizeof(_nodes)); }
Node * _nodes[9]
Definition: RegularGrid.h:28

References NodeArray< Node >::_nodes.

Member Function Documentation

◆ AddNode()

template<class Node >
void NodeArray< Node >::AddNode ( Node *  n)
inline
16 {
17 for (uint8 i = 0; i < 9; ++i)
18 if (_nodes[i] == 0)
19 {
20 _nodes[i] = n;
21 return;
22 }
23 else if (_nodes[i] == n)
24 {
25 return;
26 }
27 }
std::uint8_t uint8
Definition: Define.h:109

References NodeArray< Node >::_nodes.

Referenced by RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::insert().

Member Data Documentation

◆ _nodes