.. index:: pair: class; rgpot::nlist::PairListCache .. _doxid-classrgpot_1_1nlist_1_1_pair_list_cache: class rgpot::nlist::PairListCache ================================= .. toctree:: :hidden: Overview ~~~~~~~~ Process-wide pool of :ref:`CachedPairList ` slots, matched by geometry proximity; safe for shared potential instances evaluated from short-lived worker threads. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class PairListCache { public: // fields static std::size_t :target:`kMaxSlots` = 8; // methods template void :ref:`evaluate`(const double* R, std::size_t n, const double* box, const :ref:`CachedPairList::Options`& opt, Fn&& fn); static PairListCache& :target:`global`(); }; .. _details-classrgpot_1_1nlist_1_1_pair_list_cache: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Process-wide pool of :ref:`CachedPairList ` slots, matched by geometry proximity; safe for shared potential instances evaluated from short-lived worker threads. Methods ------- .. index:: pair: function; evaluate .. _doxid-classrgpot_1_1nlist_1_1_pair_list_cache_1ac0d9fac543a88095bcb8cade5b3afe27: .. ref-code-block:: cpp :class: doxyrest-title-code-block template void evaluate(const double* R, std::size_t n, const double* box, const :ref:`CachedPairList::Options`& opt, Fn&& fn) Single-pass evaluation with lazy list capture (see file header).