30 : m_cell(c), m_nb1(n1), m_nb2(n2) {}
49 return m_cell == nn.m_cell && m_nb1 == nn.m_nb1 && m_nb2 == nn.m_nb2;
60 << n.
GetNb1()->GetIndex() <<
" " << n.
GetNb2()->GetIndex() <<
"}";
bool operator==(const NeighborNodes &nn) const
Equality test.
bool operator!=(const NeighborNodes &nn) const
Inequality test.
A cell contains walls and nodes.
Cell * GetCell() const
Return the cell of this Neighbor pair.
Interface for NeighborNodes.
Namespace for the core simulator.
NeighborNodes(Cell *c=nullptr, Node *n1=nullptr, Node *n2=nullptr)
Plain constructor.
Node * GetNb1() const
Return first node of this Neighbor pair.
Structure of neighboring nodes: two neighboring nodes from standpoint of a given cell with an orderin...
int GetIndex() const
Return the index.
Node * GetNb2() const
Return second node of this Neighbor pair.