This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/grid/GridNode.h
2016-01-21 11:10:55 +01:00

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