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
FixedRefiner.h
Go to the documentation of this file.
1
/**
2
* \file IMP/core/FixedRefiner.h
3
* \brief A particle refiner which returns a fixed set of particles
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*/
7
8
#ifndef IMPCORE_FIXED_REFINER_H
9
#define IMPCORE_FIXED_REFINER_H
10
11
#include <IMP/core/core_config.h>
12
13
#include <
IMP/PairContainer.h
>
14
#include <
IMP/SingletonContainer.h
>
15
#include <
IMP/Refiner.h
>
16
#include <
IMP/refiner_macros.h
>
17
18
IMPCORE_BEGIN_NAMESPACE
19
20
//! The refiner can refine any particle by returning a fixed set
21
/**
22
*/
23
class
IMPCOREEXPORT
FixedRefiner
:
public
Refiner
{
24
kernel::ParticlesTemp
ps_;
25
26
public
:
27
//! Store the set of particles
28
FixedRefiner
(
const
kernel::ParticlesTemp
&ps);
29
30
virtual
bool
get_can_refine
(
kernel::Particle
*)
const
IMP_OVERRIDE;
31
virtual
const
kernel::ParticlesTemp
get_refined
(
kernel::Particle
*)
const
32
IMP_OVERRIDE;
33
#ifndef SWIG
34
using
Refiner::get_refined
;
35
#endif
36
virtual
kernel::ModelObjectsTemp
do_get_inputs
(
37
kernel::Model
*m,
const
kernel::ParticleIndexes
&pis)
const
IMP_OVERRIDE;
38
IMP_OBJECT_METHODS
(
FixedRefiner
);
39
};
40
41
IMPCORE_END_NAMESPACE
42
43
#endif
/* IMPCORE_FIXED_REFINER_H */
IMP::core::FixedRefiner
The refiner can refine any particle by returning a fixed set.
Definition:
FixedRefiner.h:23
IMP::kernel::Refiner::get_refined
virtual const ParticlesTemp get_refined(Particle *a) const =0
Refine the passed particle into a set of particles.
SingletonContainer.h
Import IMP/kernel/SingletonContainer.h in the namespace.
IMP::base::Vector< base::WeakPointer< Particle > >
IMP::kernel::Refiner::get_can_refine
virtual bool get_can_refine(Particle *) const
Return true if this refiner can refine that particle.
Definition:
kernel/Refiner.h:38
PairContainer.h
Import IMP/kernel/PairContainer.h in the namespace.
Refiner.h
Import IMP/kernel/Refiner.h in the namespace.
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
refiner_macros.h
Import IMP/kernel/refiner_macros.h in the namespace.
IMP::kernel::Refiner
Abstract class to implement hierarchical methods.
Definition:
kernel/Refiner.h:30
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/declare_Model.h:72