8#ifndef IMPATOM_BOND_SINGLETON_SCORE_H
9#define IMPATOM_BOND_SINGLETON_SCORE_H
11#include <IMP/atom/atom_config.h>
17IMPATOM_BEGIN_NAMESPACE
A nullptr-initialized pointer to an IMP Object.
Single variable function.
Contains decorators for a bond.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Abstract single variable functor class for score functions.
Score the bond based on a UnaryFunction,.
virtual double evaluate_index(Model *m, ParticleIndex p, DerivativeAccumulator *da) const override
Compute the score and the derivative if needed.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const override
Overload this method to specify the inputs.
BondSingletonScore(UnaryFunction *f)
Use f to penalize deviations in length.
IMP::Vector< IMP::Pointer< BondSingletonScore > > BondSingletonScores
Index< ParticleIndexTag > ParticleIndex
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_SINGLETON_SCORE_METHODS(Name)
A smart pointer to a ref-counted Object that is a class member.