IMP logo
IMP Reference Guide  2.5.0
The Integrative Modeling Platform
MinimumPairScore.h
Go to the documentation of this file.
1 // Autogenerated by ../../../../tmp/nightly-build-6636/imp-2.5.0/tools/build/make_containers.py
2 // from ../../../../tmp/nightly-build-6636/imp-2.5.0/tools/build/container_templates/container/MinimumClassnameScore.h
3 // Do not edit - any changes will be lost!
4 
5 /**
6  * \file IMP/container/MinimumPairScore.h
7  * \brief Define PairScore.
8  *
9  * Copyright 2007-2015 IMP Inventors. All rights reserved.
10  */
11 
12 #ifndef IMPCONTAINER_MINIMUM_PAIR_SCORE_H
13 #define IMPCONTAINER_MINIMUM_PAIR_SCORE_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/PairScore.h>
17 #include <IMP/pair_macros.h>
18 
19 IMPCONTAINER_BEGIN_NAMESPACE
20 
21 //! Evaluate the min or max n particle_pair scores of the passed set
22 /** Each of the set of PairScores is evaluated and the sum of the
23  minimum n is returned.
24 */
25 class IMPCONTAINEREXPORT MinimumPairScore : public PairScore {
26  PairScores scores_;
27  unsigned int n_;
28 
29  public:
30  MinimumPairScore(const PairScoresTemp &scores, unsigned int n = 1,
31  std::string name = "PairScore %1%");
32  virtual double evaluate_index(Model *m, const ParticleIndexPair& vt,
35  Model *m, const ParticleIndexes &pis) const IMP_OVERRIDE;
38 
40  const ParticleIndexPair& vt) const
42 };
43 
45 
46 IMPCONTAINER_END_NAMESPACE
47 
48 #endif /* IMPCONTAINER_MINIMUM_PAIR_SCORE_H */
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:38
virtual Restraints do_create_current_decomposition(Model *m, const ParticleIndexPair &vt) const
Overide this to return your own decomposition.
Macros for various classes.
#define IMP_PAIR_SCORE_METHODS(Name)
Definition: pair_macros.h:25
A class to store an fixed array of same-typed values.
Definition: Array.h:33
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Define PairScore.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Evaluate the min or max n particle_pair scores of the passed set.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition: object_macros.h:42
virtual double evaluate_index(Model *m, const ParticleIndexPair &vt, DerivativeAccumulator *da) const =0
Compute the score and the derivative if needed.
#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.