IMP logo
IMP Reference Guide  develop.1a86c4215a,2024/04/24
The Integrative Modeling Platform
SameParticlePairFilter.h
Go to the documentation of this file.
1 /**
2  * \file IMP/spb/SameParticlePairFilter.h
3  * \brief A Score on the distance between a pair of particles.
4  *
5  * Copyright 2007-2022 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPSPB_SAME_PARTICLE_PAIR_FILTER_H
9 #define IMPSPB_SAME_PARTICLE_PAIR_FILTER_H
10 
11 #include <IMP/PairPredicate.h>
12 #include <IMP/pair_macros.h>
13 #include <IMP/spb/spb_config.h>
14 
15 IMPSPB_BEGIN_NAMESPACE
16 
17 //!
18 /** Filter particles belonging to the same rigid body
19 */
20 class IMPSPBEXPORT SameParticlePairFilter : public PairPredicate {
21  public:
23 
24  virtual int get_value_index(
25  IMP::Model *m, const IMP::ParticleIndexPair &p) const override;
26 
28  IMP::Model *m, const IMP::ParticleIndexes &pis) const override;
29 
32 };
33 
34 IMPSPB_END_NAMESPACE
35 
36 #endif /* IMPSPB_SAME_PARTICLE_PAIR_FILTER_H */
Macros for various classes.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
A more IMP-like version of the std::vector.
Definition: Vector.h:50
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:86
Define PairPredicate.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Abstract predicate function.
Definition: PairPredicate.h:31
virtual int get_value_index(Model *m, const ParticleIndexPair &vt) const =0
Compute the predicate and the derivative if needed.
#define IMP_PAIR_PREDICATE_METHODS(Name)
Define extra the functions needed for a PairPredicate.
Definition: pair_macros.h:78