8#ifndef IMPPMI_SYMMETRIC_H
9#define IMPPMI_SYMMETRIC_H
11#include <IMP/pmi/pmi_config.h>
23class IMPPMIEXPORT Symmetric :
public Decorator {
25 m->add_attribute(get_symmetric_key(), pi, symmetric);
30 return m->get_has_attribute(get_symmetric_key(), pi);
33 Float get_symmetric()
const {
34 return get_model()->get_attribute(get_symmetric_key(),
38 void set_symmetric(
Float d) {
get_model()->set_attribute(get_symmetric_key(),
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.
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.