9 #ifndef IMPKERNEL_RESTRAINT_SET_H
10 #define IMPKERNEL_RESTRAINT_SET_H
12 #include <IMP/kernel_config.h>
17 IMPKERNEL_BEGIN_NAMESPACE
41 void show_it(std::ostream &out)
const;
46 const std::string &name =
"RestraintSet %1%");
51 const std::string &name =
"RestraintSet %1%");
64 if (container) on_remove(container, obj));
71 std::pair<RestraintsTemp, RestraintSetsTemp> get_non_sets_and_sets()
const;
78 double max = std::numeric_limits<
double>::max()) const
IMP_OVERRIDE;
81 double get_last_last_score() const IMP_OVERRIDE;
82 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
85 Restraints do_create_current_decomposition() const IMP_OVERRIDE;
87 void do_add_score_and_derivatives_moved(
101 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
105 for (It c = b; c != e; ++c) {
109 get_restraints_internal(rs->restraints_begin(), rs->restraints_end(),
122 get_restraints_internal(b, e, ret);
123 std::sort(ret.begin(), ret.end());
124 ret.erase(std::unique(ret.begin(), ret.end()), ret.end());
128 IMPKERNEL_END_NAMESPACE
RestraintsTemp get_restraints(const Subset &s, const ParticleStatesTable *pst, const DependencyGraph &dg, RestraintSet *rs)
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual Restraints do_create_decomposition() const
IMP::Vector< IMP::WeakPointer< Restraint > > RestraintsTemp
Macros to define containers of objects.
ScoringFunction * create_scoring_function(RestraintType *rs, double weight=1.0, double max=NO_MAX, std::string name=std::string())
Create a ScoringFunction on a single restraint.
Object used to hold a set of restraints.
Class for storing model, its restraints, constraints, and particles.
Class for adding up scores during ScoringFunction evaluation.
virtual double get_last_score() const
Represents a scoring function on the model.
Abstract base class for all restraints.
virtual ModelObjectsTemp do_get_inputs() const =0
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.