.. index:: pair: class; CellList .. _doxid-class_cell_list: class CellList ============== .. toctree:: :hidden: Overview ~~~~~~~~ :ref:`CellList ` is a helper class for :ref:`NeighborList ` and QCPotential. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class CellList { public: // construction :target:`CellList`(:ref:`Atoms`* a, double rMax); // methods void :target:`MakeNeighborList`(int neighborList[], int indices[], int& nMax, vector<:ref:`Image`>& images); int :target:`GetNeighbors`(:ref:`Vec` point, int* neighbors, int size) const; bool :target:`AnyNeighbors`(:ref:`Vec` point) const; }; .. _details-class_cell_list: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ :ref:`CellList ` is a helper class for :ref:`NeighborList ` and QCPotential. :ref:`CellList(atoms, rMax) ` will put the atoms into cells of size minimum rMax (when used by the :ref:`NeighborList ` class, rMax will be rCut + 2 \* drift). MakeNeighborLists(...) will generate neighbor lists and periodic images. GetNeighbors(...) will return all neighbors of point within a distance of rMax (useful for decoration in QC).