13 #ifndef IMPCORE_TRIPLET_RESTRAINT_H
14 #define IMPCORE_TRIPLET_RESTRAINT_H
16 #include <IMP/core/core_config.h>
18 #include <IMP/internal/TupleRestraint.h>
22 #include <cereal/access.hpp>
23 #include <cereal/types/base_class.hpp>
25 IMPCORE_BEGIN_NAMESPACE
32 #if defined(SWIG) || defined(IMP_DOXYGEN)
35 public IMP::internal::TupleRestraint<TripletScore>
38 friend class cereal::access;
40 template<
class Archive>
void serialize(Archive &ar) {
41 ar(cereal::base_class<
42 IMP::internal::TupleRestraint<TripletScore> >(
this));
51 std::string name =
"TripletRestraint %1%")
52 : IMP::internal::TupleRestraint<
TripletScore>(ss, m, vt, name) {
56 #if defined(SWIG) || defined(IMP_DOXYGEN)
A class to store a fixed array of same-typed values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A more IMP-like version of the std::vector.
TripletRestraint(Model *m, TripletScore *ss, const ParticleIndexTriplet &vt, std::string name="TripletRestraint %1%")
Create the restraint.
Class for storing model, its restraints, constraints, and particles.
Applies a TripletScore to a Triplet.
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.