|
Rosetta 3.5
|
This isn't quite a standard constraint since it acts on DOF's directly rather than on XYZ coordinates. More...
#include <DOF_Constraint.hh>


Public Member Functions | |
| DOF_Constraint (id::DOF_ID const &id, FuncOP func, ScoreType t=dof_constraint) | |
| id::DOF_ID const & | dof_id () const |
| Returns the ScoreType. More... | |
| ScoreType const & | score_type () const |
| Returns the ScoreType. More... | |
| Real | func (Real const val) const |
| Returns the Function. More... | |
| Real | dfunc (Real const val) const |
| Returns the Function Derivative. More... | |
| virtual | ~DOF_Constraint () |
| virtual void | show (std::ostream &out) const |
Private Attributes | |
| id::DOF_ID const | dof_id_ |
| constraints::FuncOP | func_ |
| ScoreType const | score_type_ |
This isn't quite a standard constraint since it acts on DOF's directly rather than on XYZ coordinates.
All DOF_Constraints are expected to be immutable once created, meaning their internal data (state) should not change over their lifetime. This allows DOF_Constraints to be shared between copies of Poses (e.g. in Monte Carlo), and is important for both speed (with thousands of contraints) and correctness.
To "change" a constraint, remove the old one and add a new and different one. The clone() and steal() methods have been removed because they are unneccessary and incompatible (respectively) with the idea of immutable constraints.
Definition at line 48 of file DOF_Constraint.hh.
|
inline |
Definition at line 51 of file DOF_Constraint.hh.
|
inlinevirtual |
Definition at line 86 of file DOF_Constraint.hh.
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 88 of file DOF_Constraint.hh.
|
private |
Definition at line 94 of file DOF_Constraint.hh.
Referenced by dof_id().
|
private |
Definition at line 95 of file DOF_Constraint.hh.
|
private |
Definition at line 96 of file DOF_Constraint.hh.
Referenced by score_type().
1.8.4