13 #ifndef IMPCORE_PAIR_RESTRAINT_H
14 #define IMPCORE_PAIR_RESTRAINT_H
16 #include <IMP/core/core_config.h>
18 #include <IMP/kernel/internal/TupleRestraint.h>
24 IMPCORE_BEGIN_NAMESPACE
31 #if defined(SWIG) || defined(IMP_DOXYGEN)
34 public IMP::kernel::internal::TupleRestraint<PairScore>
43 std::string name =
"PairRestraint %1%")
44 : IMP::kernel::internal::TupleRestraint<
PairScore>(
45 ss, IMP::kernel::internal::get_model(vt),
46 IMP::kernel::internal::
get_index(vt), name) {}
48 #if defined(SWIG) || defined(IMP_DOXYGEN)
Class for adding derivatives from restraints to the model.
Ints get_index(const kernel::ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Import IMP/kernel/restraint_macros.h in the namespace.
A class to store an fixed array of same-typed values.
Import IMP/kernel/PairScore.h in the namespace.
A restraint is a term in an IMP ScoringFunction.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
PairRestraint(PairScore *ss, const ParticlePair &vt, std::string name="PairRestraint %1%")
Create the restraint.
Applies a PairScore to a Pair.