9 #ifndef IMPSPB_HELIX_DECORATOR_H
10 #define IMPSPB_HELIX_DECORATOR_H
12 #include <IMP/spb/spb_config.h>
19 IMPSPB_BEGIN_NAMESPACE
23 static FloatKey get_helix_key(
unsigned int i);
29 p->add_attribute(get_helix_key(0), b);
30 p->add_attribute(get_helix_key(1), e);
47 (!m->
get_particle(
id)->has_attribute(get_helix_key(0)) &&
49 "Particle expected to either begin and end or none.");
50 return m->
get_particle(
id)->has_attribute(get_helix_key(1));
Particle * get_particle(ParticleIndex p) const
Get the particle from an index.
The base class for decorators.
Float get_end() const
Get the end.
Storage of a model, its restraints, constraints and particles.
Add helix parameters to a particle.
A more IMP-like version of the std::vector.
Class for storing model, its restraints, constraints, and particles.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.
Helper macros for implementing Decorators.
void set_end(Float v)
set end
Particle * get_particle() const
Returns the particle decorated by this decorator.
Interface to specialized Particle types (e.g. atoms)
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
#define IMP_DECORATOR_METHODS(Name, Parent)
double Float
Basic floating-point value (could be float, double...)
Class to handle individual particles of a Model object.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
ParticleIndex get_index() const
returns the particle index of this particle in its model
void set_begin(Float v)
set begin
Float get_begin() const
Get the beginning.