|
faunus
|
An interface of a immutable cell list. More...
#include <celllist.h>

Public Types | |
| using | AbstractCellList = AbstractImmutableCellList< TContainerType, TGridType > |
| using | ContainerType = TContainerType |
| abstract container types | |
| using | GridType = TGridType |
| abstract grid type | |
| using | Members = typename Container::MembersOf< ContainerType > |
| members type | |
| using | Member = typename Container::MemberOf< ContainerType > |
| member type | |
| using | CellIndex = typename Grid::IndexOf< GridType > |
| grid (cell) index type | |
| using | CellCoord = typename Grid::CoordOf< GridType > |
| grid (cell) coordinates type | |
Public Member Functions | |
| virtual const Members & | getMembers (const CellCoord &)=0 |
| Gets cell members at given cell coordinates. | |
| virtual const Members & | getNeighborMembers (const CellCoord &, const CellCoord &)=0 |
| Gets cell members at given cell coordinates. | |
| virtual CellIndex | gridSize () const =0 |
| Get cells count. Valid cell indices are in the range [0, gridSize). | |
| virtual std::vector< CellCoord > | getCells () const =0 |
| Gets indicies of non-empty cells. More... | |
An interface of a immutable cell list.
No methods for manipulating (adding, removing) members are provided.
| TContainerType | a container type to obtain Member and Members subtypes |
| TGridType | a grid type to obtain index and coordinates subtypes |
|
pure virtual |
Gets indicies of non-empty cells.
See AbstractContainer interface.
Implemented in Faunus::CellList::CellListDifference< TCellListMinuend, TCellListSubtrahend >, and Faunus::CellList::CellListBase< TContainer, TGrid >.
1.8.13