![]() |
fpmas 1.6
|
#include <graph.h>
Public Member Functions | |
const std::set< DistributedId > & | reachableCells () const |
void | addReachableCell (DistributedId id) |
void | removeReachableCell (DistributedId id) |
void | clearReachableCells () |
Protected Attributes | |
std::set< DistributedId > | reachable_cells |
A cell base class that can be used to implement SpatialModels based on a generic and abstract graph.
A reachable_cells collection is maintained to specify direct neighbors of this Cell, even if the Cell is DISTANT from the current process.
As a reminder, the neighbor list of a DISTANT node can't be accessed directly within a DistributedGraph instance.
|
inline |
Returns a set containing ids of cells reachable from this cell.
|
inline |
Adds the provided id to the reachable_cells collection.
id | id of a cell reachable from this cell |
|
inline |
Removes the provided if from the reachable_cells collection.
id | id of a cell previously reachable from this cell |
|
inline |
Clears the reachable_cells collection.
|
protected |
Ids of direct neighbors of this cell on the CELL_SUCCESSOR layer.
This collection must be built with addReachableCell().