8 #ifndef IMPCORE_ATTRIBUTE_SINGLETON_SCORE_H
9 #define IMPCORE_ATTRIBUTE_SINGLETON_SCORE_H
11 #include <IMP/core/core_config.h>
18 IMPCORE_BEGIN_NAMESPACE
41 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
54 m->add_to_derivative(k_, pi, d, *da);
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Single variable function.
Macros for various classes.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
virtual double evaluate_index(Model *m, ParticleIndex p, DerivativeAccumulator *da) const
Compute the score and the derivative if needed.
Class for storing model, its restraints, constraints, and particles.
Abstract class for scoring object(s) of type ParticleIndex.
#define IMP_SINGLETON_SCORE_METHODS(Name)
GenericAttributeSingletonScore< UnaryFunction > AttributeSingletonScore
A nullptr-initialized pointer to an IMP Object.
double Float
Basic floating-point value (could be float, double...)
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)
Apply a function to an attribute.
Abstract single variable functor class for score functions.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const
GenericAttributeSingletonScore< UF > * create_attribute_singleton_score(UF *uf, FloatKey k)
Various important functionality for implementing decorators.