10 #define IMPATOM_COPY_H
12 #include <IMP/atom/atom_config.h>
13 #include "../macros.h"
20 IMPATOM_BEGIN_NAMESPACE
36 static IntKey get_copy_index_key();
43 return m->get_has_attribute(get_copy_index_key(), pi);
Import IMP/kernel/Decorator.h in the namespace.
Particle * get_particle() const
Returns the particle decorated by this decorator.
#define IMP_DECORATOR_METHODS(Name, Parent)
A decorator for Molecules.
A decorator for keeping track of copies of a molecule.
static Molecule setup_particle(kernel::Model *m, ParticleIndex pi)
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
int Int
Basic integer value.
int get_copy_index(Hierarchy h)
Walk up the hierarchy to find the current copy index.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
A decorator for a molecule.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
Class for storing model, its restraints, constraints, and particles.