11 #include <IMP/atom/atom_config.h>
18 IMPATOM_BEGIN_NAMESPACE
32 return m->get_has_attribute(get_mass_key(), pi);
39 void set_mass(
Float d) {
Import IMP/kernel/Decorator.h in the namespace.
Import IMP/kernel/SingletonContainer.h in the namespace.
double get_mass(const Selection &s)
#define IMP_DECORATOR_METHODS(Name, Parent)
Model * get_model() const
Returns the Model containing the particle.
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)
Import IMP/kernel/PairContainer.h in the namespace.
static bool get_is_setup(Particle *p)
Return true if the particle can be cast to the decorator.
Import IMP/kernel/decorator_macros.h in the namespace.
void set_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
double Float
Basic floating-point value (could be float, double...)
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
Class for storing model, its restraints, constraints, and particles.