IMP logo
IMP Reference Guide  2.11.0
The Integrative Modeling Platform
AngleTripletScore.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/AngleTripletScore.h
3  * \brief A Score on the angle between three particles.
4  *
5  * Copyright 2007-2019 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPCORE_ANGLE_TRIPLET_SCORE_H
9 #define IMPCORE_ANGLE_TRIPLET_SCORE_H
10 
11 #include <IMP/core/core_config.h>
12 #include <IMP/generic.h>
13 #include <IMP/TripletScore.h>
14 #include <IMP/UnaryFunction.h>
15 #include <IMP/Pointer.h>
16 #include <IMP/triplet_macros.h>
17 
18 IMPCORE_BEGIN_NAMESPACE
19 
20 //! Apply a function to the angle between three particles.
21 /** */
22 class IMPCOREEXPORT AngleTripletScore : public TripletScore {
24 
25  public:
26  //! Score the angle (in radians) using f
28  virtual double evaluate_index(Model *m,
29  const ParticleIndexTriplet &pi,
32  Model *m, const ParticleIndexes &pis) const IMP_OVERRIDE;
35 };
36 
37 IMPCORE_END_NAMESPACE
38 
39 #endif /* IMPCORE_ANGLE_TRIPLET_SCORE_H */
Apply a function to the angle between three particles.
A class to store an fixed array of same-typed values.
Definition: Array.h:33
Macros for various classes.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Single variable function.
A more IMP-like version of the std::vector.
Definition: Vector.h:39
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Define TripletScore.
A smart pointer to a ref-counted Object that is a class member.
Definition: Pointer.h:146
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
A nullptr-initialized pointer to an IMP Object.
virtual double evaluate_index(Model *m, const ParticleIndexTriplet &vt, DerivativeAccumulator *da) const =0
Compute the score and the derivative if needed.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
Definition: TripletScore.h:37
#define IMP_TRIPLET_SCORE_METHODS(Name)
Abstract single variable functor class for score functions.
Definition: UnaryFunction.h:25
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.
Various important functionality for implementing decorators.