13 #ifndef IMPCORE_SINGLETON_RESTRAINT_H
14 #define IMPCORE_SINGLETON_RESTRAINT_H
16 #include <IMP/core/core_config.h>
18 #include <IMP/kernel/internal/TupleRestraint.h>
23 IMPCORE_BEGIN_NAMESPACE
30 #if defined(SWIG) || defined(IMP_DOXYGEN)
33 public IMP::kernel::internal::TupleRestraint<SingletonScore>
42 std::string name =
"SingletonRestraint %1%")
44 ss, IMP::kernel::internal::get_model(vt),
45 IMP::kernel::internal::
get_index(vt), name) {}
52 std::string name =
"SingletonRestraint %1%")
53 : IMP::kernel::internal::TupleRestraint<
SingletonScore>(ss, m, vt, name) {
56 #if defined(SWIG) || defined(IMP_DOXYGEN)
Class for adding derivatives from restraints to the model.
SingletonRestraint(SingletonScore *ss, kernel::Particle *vt, std::string name="SingletonRestraint %1%")
Create the restraint.
Ints get_index(const kernel::ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
SingletonRestraint(kernel::Model *m, SingletonScore *ss, kernel::ParticleIndex vt, std::string name="SingletonRestraint %1%")
Create the restraint.
A restraint is a term in an IMP ScoringFunction.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Class to handle individual model particles.
Import IMP/kernel/SingletonScore.h in the namespace.
Applies a SingletonScore to a Singleton.
Class for storing model, its restraints, constraints, and particles.