8#ifndef IMPCORE_DIHEDRAL_QUAD_SCORE_H
9#define IMPCORE_DIHEDRAL_QUAD_SCORE_H
11#include <IMP/core/core_config.h>
17#include <cereal/access.hpp>
18#include <cereal/types/base_class.hpp>
20IMPCORE_BEGIN_NAMESPACE
27 friend class cereal::access;
29 template<
class Archive>
void serialize(Archive &ar) {
30 ar(cereal::base_class<QuadScore>(
this), f_);
A nullptr-initialized pointer to an IMP Object.
Single variable function.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Abstract single variable functor class for score functions.
virtual double evaluate_index(Model *m, const ParticleIndexQuad &pi, DerivativeAccumulator *da) const override
Compute the score and the derivative if needed.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const override
Overload this method to specify the inputs.
DihedralQuadScore(UnaryFunction *f)
Score the dihedral angle (in radians) using f.
Compile-time generic restraint and constraint support.
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Array< 4, ParticleIndex > ParticleIndexQuad
An ordered quad of particles, each identified by its ParticleIndex.
#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.
Macros for various classes.
#define IMP_QUAD_SCORE_METHODS(Name)
A smart pointer to a ref-counted Object that is a class member.