8 #ifndef IMPCORE_TYPED_H
9 #define IMPCORE_TYPED_H
11 #include <IMP/core/core_config.h>
20 IMPCORE_BEGIN_NAMESPACE
23 #define IMP_PARTICLE_TYPE_INDEX 34897493
43 static IntKey get_type_key();
49 return m->get_has_attribute(get_type_key(), pi);
The base class for decorators.
ParticleIndex get_particle_index() const
Returns the particle index decorated by this decorator.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
Model * get_model() const
Returns the Model containing the particle.
Class for storing model, its restraints, constraints, and particles.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
Various general useful macros for IMP.
Key< 34897493, true > ParticleType
Interface to specialized Particle types (e.g. atoms)
#define IMP_DECORATOR_METHODS(Name, Parent)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
A decorator for classifying particles in your system.