8 #ifndef IMPPMI_UNCERTAINTY_H
9 #define IMPPMI_UNCERTAINTY_H
11 #include <IMP/pmi/pmi_config.h>
18 IMPPMI_BEGIN_NAMESPACE
31 return m->get_has_attribute(get_uncertainty_key(), pi);
34 Float get_uncertainty()
const {
39 void set_uncertainty(
Float d) {
47 static FloatKey get_uncertainty_key();
Import IMP/kernel/Decorator.h in the namespace.
ParticleIndex get_particle_index() const
Returns the particle index decorated by this decorator.
Import IMP/kernel/SingletonContainer.h in the namespace.
#define IMP_DECORATOR_METHODS(Name, Parent)
Model * get_model() const
Returns the Model containing the particle.
Add uncertainty to a particle.
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)
Import IMP/kernel/PairContainer.h in the namespace.
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.