11#include <IMP/atom/atom_config.h>
18IMPATOM_BEGIN_NAMESPACE
23class IMPATOMEXPORT Mass :
public Decorator {
30 do_setup_particle(m, pi, o.get_mass());
38 Float get_mass()
const {
42 void set_mass(
Float d) {
The base class for decorators.
A container for Singletons.
ParticleIndex get_particle_index() const
Returns the particle index decorated by this decorator.
Model * get_model() const
Returns the Model containing the particle.
Class for storing model, its restraints, constraints, and particles.
static FloatKey get_mass_key()
Helper macros for implementing Decorators.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
#define IMP_DECORATOR_METHODS(Name, Parent)
Index< ParticleIndexTag > ParticleIndex
double Float
Basic floating-point value (could be float, double...).
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.