.. index:: pair: class; rgpot::nlist::Walk .. _doxid-classrgpot_1_1nlist_1_1_walk: class rgpot::nlist::Walk ======================== .. toctree:: :hidden: :ref:`Walk ` pairs for one central atom, or one cluster of four, at a time into caller storage. The walk does not keep a list of the whole system. It borrows ``positions`` and ``box9`` until it is destroyed. ``pull`` writes at most ``dest.first.size()`` pairs and returns how many it wrote. ``done`` is set when the geometry has been exhausted. A requested field whose span is too short throws :ref:`Error ` and does not advance. One walk is used by one thread. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Walk { public: // construction :target:`Walk`(const double* positions, std::size_t n, const double* box9, const :ref:`Query`& query); // methods std::size_t :target:`pull`(:ref:`Buffers` dest, bool& done); };