.. index:: pair: struct; rgpot::nlist::NeighborList .. _doxid-structrgpot_1_1nlist_1_1_neighbor_list: struct rgpot::nlist::NeighborList ================================= .. toctree:: :hidden: Overview ~~~~~~~~ Reusable pair list. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct NeighborList { // fields double :target:`skin` = 0; std::vector :target:`lo`; std::vector :target:`hi`; std::vector :ref:`dx`; std::vector :target:`dy`; std::vector :target:`dz`; bool :ref:`use_stored` = false; std::vector :target:`ref`; double :target:`box`[9] {}; std::size_t :target:`n` = 0; double :target:`cutoff` = 0; double :target:`skin_used` = 0; bool :target:`built` = false; // methods void :target:`clear`(); }; .. _details-structrgpot_1_1nlist_1_1_neighbor_list: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Reusable pair list. A null list passed to orderedPairs rebuilds every call. skin is the extra search distance in Angstrom. The stored pairs are reused while every atom has moved by at most skin/2 and the cell is unchanged. skin 0 reuses the list only when the coordinates match. Fields ------ .. index:: pair: variable; dx .. _doxid-structrgpot_1_1nlist_1_1_neighbor_list_1a7852947dcb16f49419438a4fc0b37798: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector dx Folded r_hi - r_lo from the build. Valid when use_stored is set. .. index:: pair: variable; use_stored .. _doxid-structrgpot_1_1nlist_1_1_neighbor_list_1a2df87f77c01cdd27c69e9ad078d9ced2: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool use_stored = false True when dx, dy, dz match the current coordinates.