IMP
2.1.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
CoverBond.h
Go to the documentation of this file.
1
/**
2
* \file IMP/atom/CoverBond.h
3
* \brief Cover a bond with a sphere
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*/
7
8
#ifndef IMPATOM_COVER_BOND_H
9
#define IMPATOM_COVER_BOND_H
10
11
#include <IMP/atom/atom_config.h>
12
13
#include <
IMP/PairContainer.h
>
14
#include <
IMP/SingletonContainer.h
>
15
#include <
IMP/SingletonModifier.h
>
16
#include <
IMP/singleton_macros.h
>
17
18
IMPATOM_BEGIN_NAMESPACE
19
20
//! Cover a bond with a sphere
21
/** This is a version of core::CoverRefined optimized for bonds. It is
22
about 4x faster than the general purpose one.
23
*/
24
class
IMPATOMEXPORT
CoverBond
:
public
SingletonModifier
{
25
public
:
26
CoverBond
();
27
28
virtual
void
apply_index
(
kernel::Model
*m,
kernel::ParticleIndex
p)
const
29
IMP_OVERRIDE;
30
virtual
kernel::ModelObjectsTemp
do_get_inputs
(
31
kernel::Model
*m,
const
kernel::ParticleIndexes
&pis)
const
IMP_OVERRIDE;
32
virtual
kernel::ModelObjectsTemp
do_get_outputs
(
33
kernel::Model
*m,
const
kernel::ParticleIndexes
&pis)
const
IMP_OVERRIDE;
34
IMP_SINGLETON_MODIFIER_METHODS
(
CoverBond
);
35
IMP_OBJECT_METHODS
(
CoverBond
);
36
;
37
};
38
39
IMP_OBJECTS
(
CoverBond
,
CoverBonds
);
40
41
IMPATOM_END_NAMESPACE
42
43
#endif
/* IMPATOM_COVER_BOND_H */
SingletonModifier.h
Import IMP/kernel/SingletonModifier.h in the namespace.
SingletonContainer.h
Import IMP/kernel/SingletonContainer.h in the namespace.
singleton_macros.h
Import IMP/kernel/singleton_macros.h in the namespace.
IMP::base::Vector
Definition:
base/Vector.h:37
IMP::kernel::SingletonModifier
A base class for modifiers of ParticlesTemp.
Definition:
kernel/SingletonModifier.h:33
PairContainer.h
Import IMP/kernel/PairContainer.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::base::Index< ParticleIndexTag >
IMP_OBJECTS
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition:
base/object_macros.h:77
IMP::kernel::ParticleOutputs::do_get_outputs
virtual ModelObjectsTemp do_get_outputs(kernel::Model *m, const ParticleIndexes &pis) const
IMP::atom::CoverBond
Cover a bond with a sphere.
Definition:
CoverBond.h:24
IMP_SINGLETON_MODIFIER_METHODS
#define IMP_SINGLETON_MODIFIER_METHODS(Name)
Definition:
kernel/singleton_macros.h:338
IMP::kernel::SingletonModifier::apply_index
virtual void apply_index(kernel::Model *m, ParticleIndex v) const
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/declare_Model.h:72