8#ifndef IMPCORE_ANGLE_TRIPLET_SCORE_H
9#define IMPCORE_ANGLE_TRIPLET_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<TripletScore>(
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 ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const override
Overload this method to specify the inputs.
virtual double evaluate_index(Model *m, const ParticleIndexTriplet &pi, DerivativeAccumulator *da) const override
Compute the score and the derivative if needed.
AngleTripletScore(UnaryFunction *f)
Score the angle (in radians) using f.
Compile-time generic restraint and constraint support.
Array< 3, ParticleIndex > ParticleIndexTriplet
An ordered triplet of particles, each identified by its ParticleIndex.
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list 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.
A smart pointer to a ref-counted Object that is a class member.
Macros for various classes.
#define IMP_TRIPLET_SCORE_METHODS(Name)