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))] =
Abstract class for scoring object(s) of type ParticleIndexPair.
Macros for various classes.
#define IMP_PAIR_SCORE_METHODS(Name)
A class to store a fixed array of same-typed values.
virtual void set_particle_type(Particle *) const
Set the particle's type.
#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.
A more IMP-like version of the std::vector.
Class for storing model, its restraints, constraints, and particles.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Class to handle individual particles of a Model object.
int Int
Basic integer value.
Delegate to another PairScore depending on particle types.
virtual double evaluate_index(Model *m, const ParticleIndexPair &vt, DerivativeAccumulator *da) const =0
Compute the score and the derivative if needed.
Class for adding derivatives from restraints to the model.