IMP  2.0.1
The Integrative Modeling Platform
GridClosePairsFinder.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/GridClosePairsFinder.h
3  * \brief Use a hierarchy of grids to find close pairs.
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPCORE_GRID_CLOSE_PAIRS_FINDER_H
9 #define IMPCORE_GRID_CLOSE_PAIRS_FINDER_H
10 
11 #include "ClosePairsFinder.h"
13 #include <IMP/core/core_config.h>
14 
15 IMPCORE_BEGIN_NAMESPACE
16 
17 //! Find all nearby pairs by testing all pairs
18 /**
19  \see CloserPairsScoreState
20  */
21 class IMPCOREEXPORT GridClosePairsFinder : public ClosePairsFinder
22 {
23  public:
25 
27  ParticleIndexPairs get_close_pairs(Model *m,
28  const ParticleIndexes &pc) const;
29  ParticleIndexPairs get_close_pairs(Model *m,
30  const ParticleIndexes &pca,
31  const ParticleIndexes &pcb) const;
32 
33 };
34 
35 IMPCORE_END_NAMESPACE
36 
37 #endif /* IMPCORE_GRID_CLOSE_PAIRS_FINDER_H */