35 lines
572 B
C++
Executable File
35 lines
572 B
C++
Executable File
#ifndef GRIDNODE_H
|
|
#define GRIDNODE_H
|
|
|
|
#include "GridNodeBBox.h"
|
|
#include "GridPoint.h"
|
|
|
|
/**
|
|
* INTERNAL DATASTRUCTURE
|
|
* this data-structure is internally used by the Grid
|
|
* to store additional information for each node besides
|
|
* the user's requested data-structure
|
|
*/
|
|
class GridNode {
|
|
|
|
template<int, typename> friend class Grid;
|
|
|
|
/** INTERNAL: array-index */
|
|
int _idx = -1;
|
|
|
|
/** INTERNAL: store neighbors (via index) */
|
|
int _numNeighbors = 0;
|
|
|
|
/** INTERNAL: number of neighbors */
|
|
int _neighbors[10] = {};
|
|
|
|
public:
|
|
|
|
GridNode() {;}
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif // GRIDNODE_H
|