GridN.h
Representation of a grid where cells keep track of how many neighbors they have.
Definition: GridN.h:47
unsigned int interiorCellNeighborsLimit_
Definition: GridN.h:242
GridN(unsigned int dimension)
The constructor takes the dimension of the grid as argument.
Definition: GridN.h:78
BaseCell * createCell(const Coord &coord, BaseCellArray *nbh=nullptr) override
Definition: GridN.h:157
Cell * getCell(const Coord &coord) const
Get the cell at a specified coordinate.
Definition: GridN.h:123
typename Grid< _T >::CellArray BaseCellArray
Datatype for array of cells in base class.
Definition: GridN.h:53
void neighbors(const Cell *cell, CellArray &list) const
Get the list of neighbors for a given cell.
Definition: GridN.h:129
void neighbors(Coord &coord, CellArray &list) const
Get the list of neighbors for a given coordinate.
Definition: GridN.h:143
void neighbors(const Coord &coord, CellArray &list) const
Get the list of neighbors for a given coordinate.
Definition: GridN.h:136
unsigned int numberOfBoundaryDimensions(const Coord &coord) const
Compute how many sides of a coordinate touch the boundaries of the grid.
Definition: GridN.h:218
void getCells(CellArray &cells) const
Get the set of instantiated cells in the grid.
Definition: GridN.h:210
void setInteriorCellNeighborLimit(unsigned int count)
Definition: GridN.h:115
void neighbors(const Cell *cell, CellArray &list) const
Get the list of neighbors for a given cell.
Definition: Grid.h:125
Cell * getCell(const Coord &coord) const
Get the cell at a specified coordinate.
Definition: Grid.h:117