1 #ifndef REDUCE_CELL_WALLS_H_INCLUDED
2 #define REDUCE_CELL_WALLS_H_INCLUDED
33 for (
auto const& wall : cell->
GetWalls()) {
34 sum += (wall->GetC1() == cell) ?
35 f(wall->GetC1(), wall->GetC2(), wall) : f(wall->GetC2(), wall->GetC1(), wall);
42 #endif // end_of_include_guard
A cell contains walls and nodes.
R ReduceCellWalls(Cell *cell, std::function< R(Cell *, Cell *, Wall *)> f)
Traverse walls of cell and apply functor.
const std::list< Wall * > & GetWalls() const
Access the cell's walls.
Namespace for the core simulator.
A cell wall, runs between cell corner points and consists of wall elements.