13 #ifndef IMPCORE_PAIR_RESTRAINT_H
14 #define IMPCORE_PAIR_RESTRAINT_H
16 #include <IMP/core/core_config.h>
18 #include <IMP/internal/TupleRestraint.h>
23 IMPCORE_BEGIN_NAMESPACE
30 #if defined(SWIG) || defined(IMP_DOXYGEN)
33 public IMP::internal::TupleRestraint<PairScore>
42 std::string name =
"PairRestraint %1%")
43 : IMP::internal::TupleRestraint<
PairScore>(ss, m, vt, name) {
51 IMPCORE_DEPRECATED_METHOD_DECL(2.5)
54 : IMP::internal::TupleRestraint<
PairScore>(
55 ss, IMP::internal::get_model(vt),
57 IMPCORE_DEPRECATED_METHOD_DEF(2.5,
58 "Use the index-based constructor instead.");
61 #if defined(SWIG) || defined(IMP_DOXYGEN)
Abstract class for scoring object(s) of type ParticleIndexPair.
A class to store an fixed array of same-typed values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Class for storing model, its restraints, constraints, and particles.
PairRestraint(Model *m, PairScore *ss, const ParticleIndexPair &vt, std::string name="PairRestraint %1%")
Create the restraint.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Applies a PairScore to a Pair.
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.