class rgpot::KeptKey

Overview

What a kept potential was built for. More…

#include <KeptPotential.hpp>
 
class KeptKey {
public:
    // fields
 
    static std::size_t kBytes = 128;
 
    // methods
 
    KeptKey& f64(double v);
    KeptKey& i64(std::int64_t v);
    KeptKey& atoms(std::size_t n, const int* species);
};

Detailed Documentation

What a kept potential was built for.

Fields

static std::size_t kBytes = 128

Room for 16 eight-byte fields. A key that outgrows it never matches, so every call builds.

Methods

KeptKey& atoms(std::size_t n, const int* species)

The atom count, and the species of each atom, or null for a call without species. The species are read, not copied, until the key is kept.