13#ifndef IMPCORE_PAIR_CONSTRAINT_H
14#define IMPCORE_PAIR_CONSTRAINT_H
16#include <IMP/core/core_config.h>
17#include <IMP/internal/TupleConstraint.h>
19#include <cereal/access.hpp>
20#include <cereal/types/base_class.hpp>
22IMPCORE_BEGIN_NAMESPACE
33#if defined(IMP_DOXYGEN) || defined(SWIG)
36 public IMP::internal::TupleConstraint<PairModifier,
42 friend class cereal::access;
43 template<
class Archive>
void serialize(Archive &ar) {
44 ar(cereal::base_class<
54 std::string name =
"PairConstraint %1%",
56 : IMP::internal::TupleConstraint<
58 vt, name, can_skip) {}
64 return P::get_before_modifier();
67#if defined(IMP_DOXYGEN) || defined(SWIG)
69 typename PairModifier::IndexArgument
get_index()
const;
72 void do_update_attributes();
A Modifier on ParticlePairsTemp.
Class for adding derivatives from restraints to the model.
A base class for modifiers of ParticlePairsTemp.
virtual ModelObjectsTemp do_get_outputs() const
virtual ModelObjectsTemp do_get_inputs() const
PairModifier::IndexArgument get_index() const
Get the index(es) used in this constraint.
PairModifier * get_before_modifier() const
Get the PairModifier object used in this constraint.
Array< 2, ParticleIndex > ParticleIndexPair
An ordered pair of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.