11 #include <IMP/atom/atom_config.h>
18 IMPATOM_BEGIN_NAMESPACE
31 return m->get_has_attribute(get_mass_key(), pi);
38 void set_mass(
Float d) {
The base class for decorators.
ParticleIndex get_particle_index() const
Returns the particle index decorated by this decorator.
A container for Singletons.
double get_mass(ResidueType c)
Get the mass from the residue type.
#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.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
Various general useful macros for IMP.
void set_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
#define IMP_DECORATOR_METHODS(Name, Parent)
double Float
Basic floating-point value (could be float, double...)
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)