All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GridN.h
void neighbors(Coord &coord, CellArray &list) const
Get the list of neighbors for a given coordinate.
Definition: GridN.h:152
Grid< _T >::CellArray BaseCellArray
Datatype for array of cells in base class.
Definition: GridN.h:55
void setInteriorCellNeighborLimit(unsigned int count)
Definition: GridN.h:124
void getCells(CellArray &cells) const
Get the set of instantiated cells in the grid.
Definition: GridN.h:219
unsigned int numberOfBoundaryDimensions(const Coord &coord) const
Compute how many sides of a coordinate touch the boundaries of the grid.
Definition: GridN.h:229
Cell * getCell(const Coord &coord) const
Get the cell at a specified coordinate.
Definition: Grid.h:122
GridN(unsigned int dimension)
The constructor takes the dimension of the grid as argument.
Definition: GridN.h:84
Representation of a grid where cells keep track of how many neighbors they have.
Definition: GridN.h:47
void neighbors(const Coord &coord, CellArray &list) const
Get the list of neighbors for a given coordinate.
Definition: GridN.h:145
unsigned int interiorCellNeighborsLimit_
Definition: GridN.h:253
void neighbors(const Cell *cell, CellArray &list) const
Get the list of neighbors for a given cell.
Definition: GridN.h:138
void neighbors(const Cell *cell, CellArray &list) const
Get the list of neighbors for a given cell.
Definition: Grid.h:130
Cell * getCell(const Coord &coord) const
Get the cell at a specified coordinate.
Definition: GridN.h:132
virtual BaseCell * createCell(const Coord &coord, BaseCellArray *nbh=nullptr)
Definition: GridN.h:166