8#ifndef IMPATOM_MOLECULE_H
9#define IMPATOM_MOLECULE_H
11#include <IMP/atom/atom_config.h>
20IMPATOM_BEGIN_NAMESPACE
24class IMPATOMEXPORT Molecule :
public Hierarchy {
27 Molecule = Molecule()) {
31 m->add_attribute(key(), pi, 1);
41 return m->get_has_attribute(key(), pi);
The base class for decorators.
Storage of a model, its restraints, constraints and particles.
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
Decorator for helping deal with a hierarchy of molecules.
Macros for maintaining molecular hierarchies.
Class for storing model, its restraints, constraints, and particles.
The standard decorator for manipulating molecular structures.
static bool get_is_setup(Model *m, ParticleIndex p)
Check if the particle has the needed attributes for a cast to succeed.
static Hierarchy setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor children=ParticleIndexesAdaptor())
Create a Hierarchy of level t by adding the needed attributes.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
#define IMP_DECORATOR_SETUP_0(Name)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
#define IMP_DECORATOR_METHODS(Name, Parent)
std::string get_molecule_name(Hierarchy h)
Index< ParticleIndexTag > ParticleIndex
Key< 1 > IntKey
The type used to identify int attributes in the Particles.