8 #ifndef IMPCORE_TYPED_PAIR_SCORE_H
9 #define IMPCORE_TYPED_PAIR_SCORE_H
11 #include <IMP/core/core_config.h>
15 IMPCORE_BEGIN_NAMESPACE
35 bool allow_invalid_types_;
64 [std::pair<Int, Int>(std::min(atype, btype), std::max(atype, btype))] =
Class for adding derivatives from restraints to the model.
Import IMP/kernel/pair_macros.h in the namespace.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
void set_pair_score(PairScore *ps, Int atype, Int btype)
Set the PairScore to delegate to for a given pair of particle types.
#define IMP_PAIR_SCORE_METHODS(Name)
virtual double evaluate_index(kernel::Model *m, const kernel::ParticleIndexPair &vt, DerivativeAccumulator *da) const
Compute the score and the derivative if needed.
A class to store an fixed array of same-typed values.
Abstract class for scoring object(s) of type ParticlePair.
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
Import IMP/kernel/PairScore.h in the namespace.
Class to handle individual model particles.
int Int
Basic integer value.
Delegate to another PairScore depending on particle types.
virtual void set_particle_type(kernel::Particle *) const
Set the particle's type.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for storing model, its restraints, constraints, and particles.