11#ifndef IMPCORE_CONNECTIVITY_RESTRAINT_H
12#define IMPCORE_CONNECTIVITY_RESTRAINT_H
14#include <IMP/core/core_config.h>
21IMPCORE_BEGIN_NAMESPACE
Distance restraint between two particles.
Abstract base class for all restraints.
A container for Singletons.
Class for adding derivatives from restraints to the model.
Abstract class for scoring object(s) of type ParticleIndexPair.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
Restraints do_create_current_decomposition() const override
double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
PairScore * get_pair_score() const
Return the pair score used for scoring.
ParticleIndexPairs get_connected_index_pairs() const
Return the set of pairs which are connected by the restraint.
ConnectivityRestraint(PairScore *ps, SingletonContainerAdaptor sc)
Use the given PairScore.
IMP::ModelObjectsTemp do_get_inputs() const override
IMP::Vector< IMP::Pointer< Restraint > > Restraints
IMP::Vector< ParticleIndexPair, std::allocator< ParticleIndexPair > > ParticleIndexPairs
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.