class rgpot::nlist::WalkΒΆ

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 Error and does not advance. One walk is used by one thread.

#include <NeighbourList.hpp>
 
class Walk {
public:
    // construction
 
    Walk(const double* positions, std::size_t n, const double* box9, const Query& query);
 
    // methods
 
    std::size_t pull(Buffers dest, bool& done);
};