template<unsigned int dim, typename T, typename base>
class CellList< dim, T, BALANCED, base >
Class for BALANCED cell list implementation.
This class implement the BALANCED cell list is fast (not best) The memory allocation is small (not best). The memory allocation is (in byte) Size = M*16 + N*sizeof(ele)
Where
N = total number of elements M = number of cells sizeof(ele) = the size of the element the cell list is storing, example if the cell list store the particle id (64bit) is 8 byte
- Warning
- Do not use for extremely fine cell list (M big)
- Template Parameters
-
dim | Dimensionality of the space |
T | type of the space float, double, complex |
Definition at line 39 of file CellListBal.hpp.
|
grid_sm< dim, void > & | getGrid () |
| Return the underlying grid information of the cell list. More...
|
|
void | Initialize (Box< dim, T > &box, size_t(&div)[dim], Point< dim, T > &orig, const size_t pad=1) |
|
void | Initialize (SpaceBox< dim, T > &box, size_t(&div)[dim], Point< dim, T > &orig, const size_t pad=1) |
|
| CellList () |
| Default constructor. More...
|
|
| CellList (Box< dim, T > &box, size_t(&div)[dim], Point< dim, T > &orig, const size_t pad=1) |
| Cell list. More...
|
|
| CellList (SpaceBox< dim, T > &box, size_t(&div)[dim], Point< dim, T > &orig, const size_t pad=1) |
| Cell list. More...
|
|
void | add (const T(&pos)[dim], typename base::value_type ele) |
| Add an element in the cell list. More...
|
|
void | add (const Point< dim, T > &pos, typename base::value_type ele) |
| Add an element in the cell list. More...
|
|
void | remove (size_t cell, size_t ele) |
| remove an element from the cell More...
|
|
size_t | getNelements (size_t cell_id) |
| Return the number of element in the cell. More...
|
|
auto | get (size_t cell, size_t ele) -> decltype(cl_base.get(cell).get(ele)) |
| Get an element in the cell. More...
|
|
template<unsigned int i> |
auto | get (size_t cell, size_t ele) -> decltype(cl_base.get(cell).get(ele)) |
| Get an element in the cell. More...
|
|
void | swap (CellList< dim, T, BALANCED, base > &cl) |
| Swap the memory. More...
|
|
CellIterator< CellList< dim, T,
BALANCED, base > > | getIterator (size_t cell) |
| Get the Cell iterator. More...
|
|
template<unsigned int impl> |
CellNNIterator< dim, CellList
< dim, T, BALANCED, base >
, FULL, impl > | getNNIterator (size_t cell) |
| Get the Nearest Neighborhood iterator. More...
|
|
template<unsigned int impl> |
CellNNIterator< dim, CellList
< dim, T, BALANCED, base >
, SYM, impl > | getNNIteratorSym (size_t cell) |
|
template<unsigned int impl> |
CellNNIterator< dim, CellList
< dim, T, BALANCED, base >
, CRS, impl > | getNNIteratorCross (size_t cell) |
|