IMP  2.3.1
The Integrative Modeling Platform
QuadraticClosePairsFinder.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/QuadraticClosePairsFinder.h
3  * \brief Test all pairs of particles to find close pairs.
4  *
5  * Copyright 2007-2014 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPCORE_QUADRATIC_CLOSE_PAIRS_FINDER_H
9 #define IMPCORE_QUADRATIC_CLOSE_PAIRS_FINDER_H
10 
11 #include "ClosePairsFinder.h"
12 #include <IMP/core/core_config.h>
13 
14 IMPCORE_BEGIN_NAMESPACE
15 
16 //! Find all nearby pairs by testing all pairs
17 /** \see ClosePairsScoreState
18  */
19 class IMPCOREEXPORT QuadraticClosePairsFinder : public ClosePairsFinder {
20  public:
22  bool get_are_close(kernel::Particle *a, kernel::Particle *b) const {
23  return get_are_close(a->get_model(), a->get_index(), b->get_index());
24  }
25  bool get_are_close(kernel::Model *m, kernel::ParticleIndex a,
26  kernel::ParticleIndex b) const;
27 #ifndef SWIG
29 #else
31  const;
33  const kernel::ParticlesTemp &pca, const kernel::ParticlesTemp &pcb) const;
34 #endif
35  virtual IntPairs get_close_pairs(const algebra::BoundingBox3Ds &bbs) const
38  const algebra::BoundingBox3Ds &bbs) const
44  const kernel::ParticleIndexes &pcb) const IMP_OVERRIDE;
47 
49 };
50 
51 IMPCORE_END_NAMESPACE
52 
53 #endif /* IMPCORE_QUADRATIC_CLOSE_PAIRS_FINDER_H */
A base class for algorithms to find spatial proximities.
ParticleIndex get_index() const
returns the particle index of this particle in its model
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
Class to handle individual model particles.
kernel::ParticlePairsTemp get_close_pairs(const kernel::ParticlesTemp &pc) const
A base class for algorithms to detect proximities.
Find all nearby pairs by testing all pairs.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:73