IMP
2.1.1
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
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-2013 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 "
close_pairs_finder_macros.h
"
13
#include <IMP/core/core_config.h>
14
15
IMPCORE_BEGIN_NAMESPACE
16
17
//! Find all nearby pairs by testing all pairs
18
/** \see ClosePairsScoreState
19
*/
20
class
IMPCOREEXPORT
QuadraticClosePairsFinder
:
public
ClosePairsFinder
{
21
public
:
22
QuadraticClosePairsFinder
();
23
bool
get_are_close(
kernel::Particle
*a,
kernel::Particle
*b)
const
{
24
return
get_are_close(a->get_model(), a->get_index(), b->get_index());
25
}
26
bool
get_are_close(
kernel::Model
*m,
kernel::ParticleIndex
a,
27
kernel::ParticleIndex
b)
const
;
28
#ifndef SWIG
29
using
ClosePairsFinder::get_close_pairs
;
30
#else
31
kernel::ParticlePairsTemp
get_close_pairs
(
32
const
kernel::ParticlesTemp
&pc)
const
;
33
kernel::ParticlePairsTemp
get_close_pairs
(
34
const
kernel::ParticlesTemp
&pca,
const
kernel::ParticlesTemp
&pcb)
const
;
35
#endif
36
virtual
IntPairs
get_close_pairs
(
const
algebra::BoundingBox3Ds
&bbs)
const
37
IMP_OVERRIDE;
38
virtual
IntPairs
get_close_pairs
(
const
algebra::BoundingBox3Ds
&bas,
39
const
algebra::BoundingBox3Ds
&bbs)
const
40
IMP_OVERRIDE;
41
virtual
kernel::ParticleIndexPairs
get_close_pairs
(
42
kernel::Model
*m,
const
kernel::ParticleIndexes
&pc)
const
IMP_OVERRIDE;
43
virtual
kernel::ParticleIndexPairs
get_close_pairs
(
44
kernel::Model
*m,
const
kernel::ParticleIndexes
&pca,
45
const
kernel::ParticleIndexes
&pcb)
const
IMP_OVERRIDE;
46
virtual
kernel::ModelObjectsTemp
do_get_inputs
(
47
kernel::Model
*m,
const
kernel::ParticleIndexes
&pis)
const
IMP_OVERRIDE;
48
49
IMP_OBJECT_METHODS
(
QuadraticClosePairsFinder
);
50
};
51
52
IMPCORE_END_NAMESPACE
53
54
#endif
/* IMPCORE_QUADRATIC_CLOSE_PAIRS_FINDER_H */
IMP::core::ClosePairsFinder
A base class for algorithms to find spatial proximities.
Definition:
ClosePairsFinder.h:35
IMP::base::Vector< ParticlePair >
IMP::kernel::ParticleInputs::do_get_inputs
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
base/object_macros.h:25
IMP::kernel::Particle
Class to handle individual model particles.
Definition:
kernel/declare_Particle.h:34
IMP::base::Index< ParticleIndexTag >
IMP::core::ClosePairsFinder::get_close_pairs
kernel::ParticlePairsTemp get_close_pairs(const kernel::ParticlesTemp &pc) const
close_pairs_finder_macros.h
Various important macros for implementing decorators.
ClosePairsFinder.h
A base class for algorithms to detect proximities.
IMP::core::QuadraticClosePairsFinder
Find all nearby pairs by testing all pairs.
Definition:
QuadraticClosePairsFinder.h:20
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/declare_Model.h:72