class rgpot::nlist::PairListCache

Overview

Process-wide pool of CachedPairList slots, matched by geometry proximity; safe for shared potential instances evaluated from short-lived worker threads. More…

#include <PairListCache.hpp>
 
class PairListCache {
public:
    // fields
 
    static std::size_t kMaxSlots = 8;
 
    // methods
 
    template <typename Fn>
    void evaluate(const double* R, std::size_t n, const double* box, const CachedPairList::Options& opt, Fn&& fn);
 
    static PairListCache& global();
};

Detailed Documentation

Process-wide pool of CachedPairList slots, matched by geometry proximity; safe for shared potential instances evaluated from short-lived worker threads.

Methods

template <typename Fn>
void evaluate(const double* R, std::size_t n, const double* box, const CachedPairList::Options& opt, Fn&& fn)

Single-pass evaluation with lazy list capture (see file header).