|
faunus
|
An interface of a container. More...
#include <celllist.h>

Public Types | |
| using | ContainerType = AbstractContainer< TMember, TIndex > |
| using | Index = TIndex |
| the cell index (key) type | |
| using | Member = TMember |
| the cell member (primitive value) type | |
| using | Members = std::vector< Member > |
| the cell members type | |
Public Member Functions | |
| virtual const Members & | get (TIndex) const =0 |
| Gets cell members at the given cell index. | |
| virtual Members & | get (TIndex)=0 |
| Gets cell members at the given cell index. | |
| virtual const Members & | getEmpty () const =0 |
| Gets cell members of an empty cell. Allows non-existing cells. | |
| virtual std::vector< TIndex > | indices () const =0 |
| Gets indicies of non-empty cells. More... | |
An interface of a container.
The container is responsible for storing (and retriving) members under a given cell index. Various storage policies may be used in different implementations, e.g., a vector or a map.
| TMember | a member type |
| TIndex | an index type, see GridType::CellIndex |
|
pure virtual |
Gets indicies of non-empty cells.
All non-empty cells are included. However, not all cells included must be non-empty.
Implemented in Faunus::CellList::Container::SparseContainer< TMember, TIndex >, and Faunus::CellList::Container::DenseContainer< TMember, TIndex >.
1.8.13