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