IMP  2.4.0
The Integrative Modeling Platform
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-2015 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
36  ;
37 };
38 
40 
41 IMPATOM_END_NAMESPACE
42 
43 #endif /* IMPATOM_COVER_BOND_H */
Import IMP/kernel/SingletonModifier.h in the namespace.
Import IMP/kernel/SingletonContainer.h in the namespace.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Import IMP/kernel/singleton_macros.h in the namespace.
virtual void apply_index(kernel::Model *m, kernel::ParticleIndex v) const
A base class for modifiers of kernel::ParticlesTemp.
Import IMP/kernel/PairContainer.h in the namespace.
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition: object_macros.h:52
virtual ModelObjectsTemp do_get_outputs(kernel::Model *m, const ParticleIndexes &pis) const
Cover a bond with a sphere.
Definition: CoverBond.h:24
#define IMP_SINGLETON_MODIFIER_METHODS(Name)
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:73