8 #ifndef IMPCORE_GENERIC_ATTRIBUTE_SINGLETON_SCORE_H
9 #define IMPCORE_GENERIC_ATTRIBUTE_SINGLETON_SCORE_H
11 #include <IMP/core/core_config.h>
18 IMPCORE_BEGIN_NAMESPACE
43 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
49 inline Float GenericAttributeSingletonScore<UF>::evaluate_index(
56 m->add_to_derivative(k_, pi, d, *da);
UF * get_unary_function()
get access to the unary function object used for scoring the attribute
#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)
A more IMP-like version of the std::vector.
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...)
GenericAttributeSingletonScore< UF > * create_generic_attribute_singleton_score(UF *uf, FloatKey k)
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)
get the value of the particle attribute with the specified key
Apply a function to an attribute.
#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
Overload this method to specify the inputs.
Various important functionality for implementing decorators.