8 #ifndef IMPATOM_MOLECULE_H
9 #define IMPATOM_MOLECULE_H
11 #include <IMP/atom/atom_config.h>
20 IMPATOM_BEGIN_NAMESPACE
28 if (!Hierarchy::get_is_setup(m, pi)) {
41 return m->get_has_attribute(key(), pi);
Import IMP/kernel/Decorator.h in the namespace.
Import IMP/kernel/base_types.h in the namespace.
#define IMP_DECORATOR_METHODS(Name, Parent)
static bool get_is_setup(kernel::Model *m, kernel::ParticleIndex p)
Decorator for helping deal with a hierarchy of molecules.
The standard decorator for manipulating molecular structures.
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
#define IMP_DECORATOR_SETUP_0(Name)
Storage of a model, its restraints, constraints and particles.
Classes to handle individual model particles.
std::string get_molecule_name(Hierarchy h)
Various important macros for implementing decorators.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
#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.