11 #include <IMP/atom/atom_config.h>
12 #include "../macros.h"
19 IMPATOM_BEGIN_NAMESPACE
35 static IntKey get_copy_index_key();
42 return m->get_has_attribute(get_copy_index_key(), pi);
Import IMP/kernel/Decorator.h in the namespace.
Particle * get_particle() const
#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)
#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.