8#ifndef IMPEXAMPLE_EXAMPLE_COMPLEX_RESTRAINT_H
9#define IMPEXAMPLE_EXAMPLE_COMPLEX_RESTRAINT_H
11#include <IMP/example/example_config.h>
19IMPEXAMPLE_BEGIN_NAMESPACE
47 std::string name =
"ExampleComplexRestraint%1%");
55IMPEXAMPLE_END_NAMESPACE
Abstract base class for all restraints.
A container for Singletons.
Single variable function.
Class for adding derivatives from restraints to the model.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
A shared container for Singletons.
Abstract single variable functor class for score functions.
ExampleComplexRestraint(UnaryFunction *f, SingletonContainer *sc, Float diameter, std::string name="ExampleComplexRestraint%1%")
Use f to restrain particles in sc to be within diameter of one another.
virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
virtual IMP::ModelObjectsTemp do_get_inputs() const override
Index< ParticleIndexTag > ParticleIndex
double Float
Basic floating-point value (could be float, double...).
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a reference counted object.