home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
2.8.0
The Integrative Modeling Platform
IMP Manual
Reference Guide
Modules
Classes
Examples
include
IMP
atom
version 2.8.0
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-2017 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
(
Model
*m,
ParticleIndex
p)
const
29
IMP_OVERRIDE
;
30
virtual
ModelObjectsTemp
do_get_inputs
(
31
Model
*m,
const
ParticleIndexes
&pis)
const
IMP_OVERRIDE
;
32
virtual
ModelObjectsTemp
do_get_outputs
(
33
Model
*m,
const
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 */
IMP::SingletonModifier
A base class for modifiers of ParticlesTemp.
Definition:
SingletonModifier.h:32
SingletonModifier.h
A Modifier on ParticlesTemp.
SingletonContainer.h
A container for Singletons.
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
Overload this method to specify the outputs.
IMP::Vector
A more IMP-like version of the std::vector.
Definition:
Vector.h:39
IMP::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
Model.h:72
PairContainer.h
A container for Pairs.
IMP_SINGLETON_MODIFIER_METHODS
#define IMP_SINGLETON_MODIFIER_METHODS(Name)
Definition:
singleton_macros.h:93
IMP::ParticleInputs::do_get_inputs
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
IMP_OBJECTS
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
Definition:
object_macros.h:44
IMP::SingletonModifier::apply_index
virtual void apply_index(Model *m, ParticleIndex v) const =0
IMP::atom::CoverBond
Cover a bond with a sphere.
Definition:
CoverBond.h:24
IMP_OVERRIDE
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Definition:
compiler_macros.h:80