IMP logo
IMP Reference Guide  2.8.0
The Integrative Modeling Platform
MinimumTripletScore.h
Go to the documentation of this file.
1 // Autogenerated by ../../../../tmp/nightly-build-97111/imp-2.8.0/tools/build/make_containers.py
2 // from ../../../../tmp/nightly-build-97111/imp-2.8.0/tools/build/container_templates/container/MinimumClassnameScore.h
3 // Do not edit - any changes will be lost!
4 
5 /**
6  * \file IMP/container/MinimumTripletScore.h
7  * \brief Define TripletScore.
8  *
9  * Copyright 2007-2017 IMP Inventors. All rights reserved.
10  */
11 
12 #ifndef IMPCONTAINER_MINIMUM_TRIPLET_SCORE_H
13 #define IMPCONTAINER_MINIMUM_TRIPLET_SCORE_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/TripletScore.h>
17 #include <IMP/triplet_macros.h>
18 
19 IMPCONTAINER_BEGIN_NAMESPACE
20 
21 //! Evaluate the min or max n particle_triplet scores of the passed set
22 /** Each of the set of TripletScores is evaluated and the sum of the
23  minimum n is returned.
24 */
25 class IMPCONTAINEREXPORT MinimumTripletScore : public TripletScore {
26  TripletScores scores_;
27  unsigned int n_;
28 
29  public:
30  MinimumTripletScore(const TripletScoresTemp &scores, unsigned int n = 1,
31  std::string name = "TripletScore %1%");
32  virtual double evaluate_index(Model *m, const ParticleIndexTriplet& vt,
35  Model *m, const ParticleIndexes &pis) const IMP_OVERRIDE;
38 
40  const ParticleIndexTriplet& vt) const
42 };
43 
45 
46 IMPCONTAINER_END_NAMESPACE
47 
48 #endif /* IMPCONTAINER_MINIMUM_TRIPLET_SCORE_H */
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
Evaluate the min or max n particle_triplet scores of the passed set.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Define TripletScore.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
virtual Restraints do_create_current_decomposition(Model *m, const ParticleIndexTriplet &vt) const
Override this to return your own decomposition.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
Definition: object_macros.h:44
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)
#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.