class rgpot::nlist::BuilderΒΆ

Stored list with a skin rebuild. A later update keeps the table while every atom has moved by at most half the skin and the cell and the query are unchanged. Skin 0 rebuilds unless the coordinates match. Throws Error and keeps the previous table when the geometry is rejected. The same builder is used by one thread. Two builders may update at the same time.

#include <NeighbourList.hpp>
 
class Builder {
public:
    // methods
 
    void update(const double* positions, std::size_t n, const double* box9, const Query& query);
    const Table& table() const;
    std::uint64_t builds() const;
    bool reused() const;
};