Neighborhood query that gathers neighbors in a Von Neumann (N, S, E, W) neighborhood.
More...
#include <VN2DGridQuery.h>
|
| VN2DGridQuery (const Grid< T, int > *grid) |
|
virtual void | query (const Point< int > ¢er, int range, bool includeCenter, std::vector< T * > &out) const |
| Queries the Grid for the Von Neumann neighbors surrounding the center point within a specified range. More...
|
|
| Grid2DQuery (const Grid< T, int > *grid) |
| Creates Grid2DQuery that will query the specified Grid.
|
|
|
const Grid< T, int > * | _grid |
|
int | minMax [2][2] |
|
template<typename T>
class repast::VN2DGridQuery< T >
Neighborhood query that gathers neighbors in a Von Neumann (N, S, E, W) neighborhood.
- Template Parameters
-
T | the type of agents in the Grid |
◆ query()
template<typename T >
void repast::VN2DGridQuery< T >::query |
( |
const Point< int > & |
center, |
|
|
int |
range, |
|
|
bool |
includeCenter, |
|
|
std::vector< T * > & |
out |
|
) |
| const |
|
virtual |
Queries the Grid for the Von Neumann 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: