9 #ifndef IMPKERNEL_RESTRAINT_SET_H
10 #define IMPKERNEL_RESTRAINT_SET_H
12 #include <IMP/kernel/kernel_config.h>
17 IMPKERNEL_BEGIN_NAMESPACE
40 void show_it(std::ostream &out)
const;
45 const std::string &name =
"RestraintSet %1%");
50 const std::string &name =
"RestraintSet %1%");
62 if (container) on_remove(container, obj));
66 std::pair<RestraintsTemp, RestraintSetsTemp> get_non_sets_and_sets()
const;
73 double max = std::numeric_limits<double>::max())
const;
76 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
91 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
95 for (It c = b; c != e; ++c) {
99 get_restraints_internal(rs->restraints_begin(), rs->restraints_end(),
112 get_restraints_internal(b, e, ret);
113 std::sort(ret.begin(), ret.end());
114 ret.erase(std::unique(ret.begin(), ret.end()), ret.end());
118 IMPKERNEL_END_NAMESPACE
Class for adding derivatives from restraints to the model.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
IMP::base::Vector< IMP::base::WeakPointer< Restraint > > RestraintsTemp
Object used to hold a set of restraints.
virtual void do_add_score_and_derivatives(ScoreAccumulator sa) const
kernel::RestraintsTemp get_restraints(const Subset &s, const ParticleStatesTable *pst, const DependencyGraph &dg, kernel::RestraintSet *rs)
Represents a scoring function on the model.
virtual double get_last_score() const
Abstract base class for all restraints.
Class for adding up scores during ScoringFunction evaluation.
A restraint is a term in an IMP ScoringFunction.
virtual Restraints do_create_current_decomposition() const
virtual ScoringFunction * create_scoring_function(double weight=1.0, double max=NO_MAX) const
Create a scoring function with only this restraint.
virtual ModelObjectsTemp do_get_inputs() const =0
virtual Restraints do_create_decomposition() const
Macros to define containers of objects.
IMP::kernel::RestraintSet RestraintSet
Class for storing model, its restraints, constraints, and particles.