home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
2.6.2
The Integrative Modeling Platform
IMP Manual
Reference Guide
Modules
Classes
Examples
include
IMP
core
DerivativesToRefined.h
Go to the documentation of this file.
1
/**
2
* \file IMP/core/DerivativesToRefined.h
3
* \brief Accumulate the derivatives of the refined particles
4
*
5
* Copyright 2007-2016 IMP Inventors. All rights reserved.
6
*/
7
8
#ifndef IMPCORE_DERIVATIVES_TO_REFINED_H
9
#define IMPCORE_DERIVATIVES_TO_REFINED_H
10
11
#include <IMP/core/core_config.h>
12
13
#include "
XYZ.h
"
14
#include <
IMP/Refiner.h
>
15
#include <
IMP/singleton_macros.h
>
16
#include <
IMP/Pointer.h
>
17
#include <
IMP/SingletonDerivativeModifier.h
>
18
19
IMPCORE_BEGIN_NAMESPACE
20
21
//! Copy the derivatives from a coarse particle to its refined particles
22
/** \see DerivatvesFromRefinedSingletonModifier
23
\see CoverRefined
24
\see CentroidOfRefinedSingletonModifier
25
An example showing a how to use such a score state to maintain a cover
26
of the atoms of a protein by a sphere per residue.
27
\include cover_particles.py
28
*/
29
class
IMPCOREEXPORT
DerivativesToRefined
:
public
SingletonDerivativeModifier
{
30
IMP::PointerMember<Refiner>
refiner_;
31
FloatKeys
ks_;
32
33
public
:
34
//! Copy ks to the particles returned by r.
35
DerivativesToRefined
(
Refiner
*r,
FloatKeys
ks = XYZ::get_xyz_keys());
36
37
virtual
void
apply_index
(
Model
*m,
ParticleIndex
a)
const
38
IMP_OVERRIDE
;
39
virtual
ModelObjectsTemp
do_get_inputs
(
40
Model
*m,
const
ParticleIndexes
&pis)
const
IMP_OVERRIDE
;
41
virtual
ModelObjectsTemp
do_get_outputs
(
42
Model
*m,
const
ParticleIndexes
&pis)
const
IMP_OVERRIDE
;
43
IMP_SINGLETON_MODIFIER_METHODS
(
DerivativesToRefined
);
44
IMP_OBJECT_METHODS
(
DerivativesToRefined
);
45
};
46
47
IMPCORE_END_NAMESPACE
48
49
#endif
/* IMPCORE_DERIVATIVES_TO_REFINED_H */
IMP::SingletonModifier
A base class for modifiers of ParticlesTemp.
Definition:
SingletonModifier.h:32
IMP::core::DerivativesToRefined
Copy the derivatives from a coarse particle to its refined particles.
Definition:
DerivativesToRefined.h:29
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
object_macros.h:25
IMP::Index< ParticleIndexTag >
singleton_macros.h
Macros for various classes.
IMP::ParticleOutputs::do_get_outputs
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
IMP::Vector< FloatKey >
XYZ.h
Simple XYZ decorator.
IMP::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
Model.h:72
IMP_SINGLETON_MODIFIER_METHODS
#define IMP_SINGLETON_MODIFIER_METHODS(Name)
Definition:
singleton_macros.h:93
Refiner.h
Refine a particle into a list of particles.
SingletonDerivativeModifier.h
A Modifier on ParticlesTemp.
IMP::PointerMember
A smart pointer to a ref-counted Object that is a class member.
Definition:
Pointer.h:146
IMP::ParticleInputs::do_get_inputs
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Pointer.h
A nullptr-initialized pointer to an IMP Object.
IMP::SingletonModifier::apply_index
virtual void apply_index(Model *m, ParticleIndex v) const =0
IMP::Refiner
Abstract class to implement hierarchical methods.
Definition:
Refiner.h:34
IMP_OVERRIDE
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Definition:
compiler_macros.h:80