Neighborhood query that gathers neighbors in a Moore (N, S, E, W, NE, etc.) neighborhood.
More...
#include <Moore2DGridQuery.h>
|
const Grid< T, int > * | _grid |
|
int | minMax [2][2] |
|
template<typename T>
class repast::Moore2DGridQuery< T >
Neighborhood query that gathers neighbors in a Moore (N, S, E, W, NE, etc.) neighborhood.
- Template Parameters
-
T | the type of agents in the Grid |
◆ query()
Queries the Grid for the Moore neighbors surrounding the center point within a specified range.
- Parameters
-
| center | the center of the neighborhood |
| range | the range of the neighborhood out from the center |
| includeCenter | whether or not to include any agents at the center |
[out] | the | neighboring agents will be returned in this vector |
Implements repast::Grid2DQuery< T >.
The documentation for this class was generated from the following file: