/** * \file atom/angle_decorators.cpp \brief Decorators for angles * * Copyright 2007-2013 IMP Inventors. All rights reserved. * */ #include IMPATOM_BEGIN_NAMESPACE ParticleIndexKey Angle::get_particle_key(unsigned int pi) { static ParticleIndexKey k[3] = { ParticleIndexKey("angle particle 1"), ParticleIndexKey("angle particle 2"), ParticleIndexKey("angle particle 3") }; return k[pi]; } FloatKey Angle::get_ideal_key() { static FloatKey k("ideal"); return k; } FloatKey Angle::get_stiffness_key() { static FloatKey k("stiffness"); return k; } void Angle::show(std::ostream &out) const { out << "Angle on " << get_particle(0)->get_name() << " " << get_particle(1)->get_name() << " " << get_particle(2)->get_name(); } ParticleIndexKey Dihedral::get_particle_key(unsigned int pi) { static ParticleIndexKey k[4] = { ParticleIndexKey("dihedral particle 1"), ParticleIndexKey("dihedral particle 2"), ParticleIndexKey("dihedral particle 3"), ParticleIndexKey("dihedral particle 4") }; return k[pi]; } FloatKey Dihedral::get_ideal_key() { static FloatKey k("ideal"); return k; } FloatKey Dihedral::get_stiffness_key() { static FloatKey k("stiffness"); return k; } IntKey Dihedral::get_multiplicity_key() { static IntKey k("multiplicity"); return k; } void Dihedral::show(std::ostream &out) const { out << "Dihedral on " << get_particle(0)->get_name() << " " << get_particle(1)->get_name() << " " << get_particle(2)->get_name() << " " << get_particle(3)->get_name(); } IMPATOM_END_NAMESPACE