|
Rosetta 3.5
|
Manages harmonic restraints on torsions, so they can be turned off for packing. More...
#include <ResidueTorsionRestraints.hh>


Public Member Functions | |
| ResidueTorsionRestraints (core::pose::Pose &pose, core::Size resid, core::Real stddev_degrees) | |
| Establishes initial constraints set – constraints start off enabled. More... | |
| virtual | ~ResidueTorsionRestraints () |
| virtual void | enable (core::pose::Pose &pose) |
| Constrain residue torsions for specified pose. More... | |
| virtual void | disable (core::pose::Pose &pose) |
| Remove residue torsions constraints added by this object (if any). More... | |
| bool | operator== (const ResidueTorsionRestraints &other) |
Private Member Functions | |
| virtual void | setup_constraints (core::pose::Pose &pose) |
| Shared logic for creating torsional constraints. More... | |
| virtual core::scoring::constraints::ConstraintSetOP | without_my_constraints (core::scoring::constraints::ConstraintSetCOP old_constraints, std::set< core::scoring::constraints::ConstraintCOP > &removed_constraints) |
| Shared logic; returns old_constraints without my_constraints_. More... | |
Private Attributes | |
| core::Size | resid_ |
| core::Real | stddev_degrees_ |
| std::set< std::string > | my_constraints_ |
| utility::vector1< core::Real > | old_chi_ |
| std::set < core::scoring::constraints::ConstraintCOP > | old_constraints_ |
Manages harmonic restraints on torsions, so they can be turned off for packing.
Restraints are created when object is created, so they start off enabled. I had to change from a PoseOP in the constructor to Pose references in enable/disable because Movers only get Pose references, not PoseOPs. Do not try to use one of these with multiple different poses, or surely the C++ gods will smite thee.
Definition at line 40 of file ResidueTorsionRestraints.hh.
| protocols::ligand_docking::ResidueTorsionRestraints::ResidueTorsionRestraints | ( | core::pose::Pose & | pose, |
| core::Size | resid, | ||
| core::Real | stddev_degrees | ||
| ) |
Establishes initial constraints set – constraints start off enabled.
Definition at line 42 of file ResidueTorsionRestraints.cc.
References enable().
|
inlinevirtual |
Definition at line 50 of file ResidueTorsionRestraints.hh.
|
virtual |
Remove residue torsions constraints added by this object (if any).
Definition at line 168 of file ResidueTorsionRestraints.cc.
References core::conformation::Residue::chi(), core::pose::Pose::constraint_set(), old_chi_, old_constraints_, resid_, core::pose::Pose::residue(), and without_my_constraints().
|
virtual |
Constrain residue torsions for specified pose.
Definition at line 137 of file ResidueTorsionRestraints.cc.
References core::conformation::Residue::chi(), core::pose::Pose::constraint_set(), old_chi_, old_constraints_, resid_, core::pose::Pose::residue(), and setup_constraints().
Referenced by ResidueTorsionRestraints().
| bool protocols::ligand_docking::ResidueTorsionRestraints::operator== | ( | const ResidueTorsionRestraints & | other) |
Definition at line 57 of file ResidueTorsionRestraints.cc.
References resid_.
|
privatevirtual |
Shared logic for creating torsional constraints.
Adds constraints to all rotatable torsions except proton chis. Conserves all existing constraints except ones previously added by this object.
Definition at line 63 of file ResidueTorsionRestraints.cc.
References core::pose::Pose::constraint_set(), my_constraints_, resid_, core::pose::Pose::residue(), core::pose::Pose::residue_type(), stddev_degrees_, and without_my_constraints().
Referenced by enable().
|
privatevirtual |
Shared logic; returns old_constraints without my_constraints_.
Definition at line 112 of file ResidueTorsionRestraints.cc.
References my_constraints_.
Referenced by disable(), and setup_constraints().
|
private |
Constraints that were created and added by this object. We compare by to_string() names rather than object identity because copying a Pose creates a deep copy of its constraints.
Definition at line 78 of file ResidueTorsionRestraints.hh.
Referenced by setup_constraints(), and without_my_constraints().
|
private |
Definition at line 80 of file ResidueTorsionRestraints.hh.
|
private |
Definition at line 81 of file ResidueTorsionRestraints.hh.
|
private |
Definition at line 73 of file ResidueTorsionRestraints.hh.
Referenced by disable(), enable(), operator==(), and setup_constraints().
|
private |
Definition at line 74 of file ResidueTorsionRestraints.hh.
Referenced by setup_constraints().
1.8.4