9 #ifndef IMPEXAMPLE_EXAMPLE_RESTRAINT_H
10 #define IMPEXAMPLE_EXAMPLE_RESTRAINT_H
12 #include <IMP/example/example_config.h>
14 #include <cereal/access.hpp>
16 IMPEXAMPLE_BEGIN_NAMESPACE
40 double get_force_constant()
const {
return k_; }
50 friend class cereal::access;
51 template<
class Archive>
void serialize(Archive &ar) {
54 ar(cereal::base_class<Restraint>(
this), p_, k_);
63 IMPEXAMPLE_END_NAMESPACE
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A more IMP-like version of the std::vector.
Class for storing model, its restraints, constraints, and particles.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
Class for adding up scores during ScoringFunction evaluation.
Restrain a particle to be in the x,y plane.
Abstract base class for all restraints.
virtual ModelObjectsTemp do_get_inputs() const =0
A restraint is a term in an IMP ScoringFunction.