|
RepastHPC
2.3.1
|
Provides lookup of grid topology process neighbors given a point in the pan process grid. More...
#include <SharedBaseGrid.h>
Public Member Functions | |
| Neighbors (int numberOfNeighbors) | |
| void | addNeighbor (Neighbor *ngh, RelativeLocation relLoc) |
| Adds a neighbor at the specified location. | |
| Neighbor * | neighbor (RelativeLocation) const |
| Gets the neighbor at the specified location. More... | |
| Neighbor * | findNeighbor (const std::vector< int > &pt) |
| Finds the neighbor that contains the specified point. More... | |
| Neighbor * | findNeighbor (const std::vector< double > &pt) |
| Finds the neighbor that contains the specified point. More... | |
| void | getNeighborRanks (std::set< int > &ranks) |
| Neighbor * | getNeighborByIndex (int index) |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Neighbors &nghs) |
Provides lookup of grid topology process neighbors given a point in the pan process grid.
| Neighbor * repast::Neighbors::findNeighbor | ( | const std::vector< double > & | pt | ) |
Finds the neighbor that contains the specified point.
| Neighbor * repast::Neighbors::findNeighbor | ( | const std::vector< int > & | pt | ) |
Finds the neighbor that contains the specified point.
| Neighbor * repast::Neighbors::neighbor | ( | RelativeLocation | relLoc | ) | const |
Gets the neighbor at the specified location.
| location | the location of the neighbor. |
1.8.17