IMP  2.2.1
The Integrative Modeling Platform
SameResiduePairFilter.h
Go to the documentation of this file.
1 /**
2  * \file IMP/atom/SameResiduePairFilter.h
3  * \brief A Score on the distance between a pair of particles.
4  *
5  * Copyright 2007-2014 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPATOM_SAME_RESIDUE_PAIR_FILTER_H
9 #define IMPATOM_SAME_RESIDUE_PAIR_FILTER_H
10 
11 #include <IMP/atom/atom_config.h>
12 #include <IMP/PairPredicate.h>
13 #include <IMP/pair_macros.h>
14 
15 IMPATOM_BEGIN_NAMESPACE
16 
17 //!
18 /** Predicate atoms that belong to the same residue. The is designed
19  for use with the DopePairScore. All particles passed to it must
20  be Atom particles. This can change if desired.
21 */
22 class IMPATOMEXPORT SameResiduePairFilter : public PairPredicate {
23  public:
25  virtual int get_value_index(kernel::Model *m,
26  const kernel::ParticleIndexPair &p) const
27  IMP_OVERRIDE;
29  kernel::Model *m, const kernel::ParticleIndexes &pis) const IMP_OVERRIDE;
32  ;
33 };
34 
35 IMPATOM_END_NAMESPACE
36 
37 #endif /* IMPATOM_SAME_RESIDUE_PAIR_FILTER_H */
Import IMP/kernel/pair_macros.h in the namespace.
virtual int get_value_index(kernel::Model *m, const kernel::ParticleIndexPair &vt) const
Compute the predicate and the derivative if needed.
A class to store an fixed array of same-typed values.
Definition: base/Array.h:33
Import IMP/kernel/PairPredicate.h in the namespace.
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
#define IMP_PAIR_PREDICATE_METHODS(Name)
Define extra the functions needed for a PairPredicate.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Abstract predicate function.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:72