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
47 friend class cereal::access;
48 template<
class Archive>
void serialize(Archive &ar) {
51 ar(cereal::base_class<Restraint>(
this), p_, k_);
60 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.
#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.