8 #ifndef IMPATOM_STATE_H
9 #define IMPATOM_STATE_H
11 #include <IMP/atom/atom_config.h>
20 IMPATOM_BEGIN_NAMESPACE
28 static IntKey get_index_key();
34 do_setup_particle(m, pi, o.get_state_index());
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.
Storage of a model, its restraints, constraints and particles.
Class for storing model, its restraints, constraints, and particles.
Decorator for helping deal with a hierarchy of molecules.
The standard decorator for manipulating molecular structures.
int get_state_index(Hierarchy h)
Walk up the hierarchy to find the current state.
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
Macros for maintaining molecular hierarchies.
static bool get_is_setup(Model *m, ParticleIndex p)
Check if the particle has the needed attributes for a cast to succeed.
Associate an integer "state" index with a hierarchy node.
#define IMP_DECORATOR_METHODS(Name, Parent)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
bool get_has_attribute(TypeKey attribute_key, ParticleIndex particle) const
return true if particle has attribute with the specified key
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)
get the value of the particle attribute with the specified key