initial version
This commit is contained in:
34
grid/GridNode.h
Executable file
34
grid/GridNode.h
Executable file
@@ -0,0 +1,34 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user