9 #ifndef IMPKERNEL_DECLARE_RESTRAINT_SET_H
10 #define IMPKERNEL_DECLARE_RESTRAINT_SET_H
12 #include <IMP/kernel/kernel_config.h>
18 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%");
53 IMPKERNEL_DEPRECATED_METHOD_DECL(2.1)
54 RestraintSet(
double weight,
const std::string &name =
"RestraintSet %1%");
56 IMPKERNEL_DEPRECATED_METHOD_DECL(2.1)
57 RestraintSet(
const std::string &name =
"RestraintSet %1%");
69 if (container) on_remove(container, obj));
73 std::pair<RestraintsTemp, RestraintSetsTemp> get_non_sets_and_sets()
const;
80 double max = std::numeric_limits<double>::max())
const;
83 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
101 IMPKERNEL_END_NAMESPACE
Abstract base class for all restraints.
Class for adding derivatives from restraints to the model.
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)
virtual double get_last_score() const
Class for adding up scores during ScoringFunction evaluation.
A restraint is a term in an IMP ScoringFunction.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual Restraints do_create_current_decomposition() const
virtual ScoringFunction * create_scoring_function(double weight=1.0, double max=NO_MAX) const
virtual void do_set_model(kernel::Model *)
virtual ModelObjectsTemp do_get_inputs() const =0
virtual Restraints do_create_decomposition() const
Macros to define containers of objects.
IMP::kernel::RestraintSet RestraintSet
Declare an efficient stl-compatible map.
Class for storing model, its restraints, constraints, and particles.