![]() |
Rosetta Core
2014.35
|
#include <Constraints.hh>
Public Types | |
typedef id::AtomID | AtomID |
typedef conformation::Residue | Residue |
typedef conformation::Conformation | Conformation |
typedef ConstraintCOPs::const_iterator | const_iterator |
Public Member Functions | |
virtual | ~Constraints () |
Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
Constraints () | |
Constraints (Constraints const &) | |
ConstraintsOP | clone () const |
Constraints const & | operator= (Constraints const &) |
void | setup_for_scoring (core::scoring::func::XYZ_Func const &xyz_func, ScoreFunction const &scfxn) const |
void | setup_for_derivatives (core::scoring::func::XYZ_Func const &xyz_func, ScoreFunction const &scfxn) const |
void | residue_pair_energy (Residue const &rsd1, Residue const &rsd2, EnergyMap const &weights, EnergyMap &emap) const |
will fail if Residues dont contain all the necessary atoms More... | |
void | intra_residue_energy (Residue const &rsd, EnergyMap const &weights, EnergyMap &emap) const |
will fail if Residue doesnt contain all the necessary atoms More... | |
void | conformation_energy (Conformation const &conformation, EnergyMap const &weights, EnergyMap &emap) const |
void | eval_intrares_atom_derivative (id::AtomID const &atom_id, conformation::Residue const &residue, EnergyMap const &weights, Vector &F1, Vector &F2) const |
Evaluate derivatives giving the Constraint objects held within this object a single residue. Warning: if this Constraints object contains Constraint objects that operate on other residues besides the one being given them, then this function will cause the program to exit. More... | |
void | eval_respair_atom_derivative (id::AtomID const &atom_id, conformation::Residue const &residue1, conformation::Residue const &residue2, EnergyMap const &weights, Vector &F1, Vector &F2) const |
Evaluate derivatives giving the Constraint objects held within this object two residues. Warning: if this Constraints object contains Constraint objects that operate on other residues besides the two being given them, then this function will cause the program to exit. More... | |
void | eval_ws_atom_derivative (AtomID const &atom_id, Conformation const &conformation, EnergyMap const &weights, Vector &F1, Vector &F2) const |
Evaluate derivatives giving the Constraint objects held within this object the entire Conformation (a whole structure, ws) with which to work. More... | |
void | add_constraint (ConstraintCOP cst) |
bool | remove_constraint (ConstraintCOP cst, bool object_comparison) |
Returns true iff the constraint was successfully found and removed. More... | |
const_iterator | begin () const |
const_iterator | end () const |
void | show (std::ostream &out) |
void | show_definition (std::ostream &out, pose::Pose const &pose) const |
virtual Size | show_violations (std::ostream &out, pose::Pose const &pose, Size verbose_level, core::Real threshold=1) |
Size | size () const |
void | clear () |
ConstraintCOPs const & | constraints () const |
Private Member Functions | |
void | energy (core::scoring::func::XYZ_Func const &xyz_func, EnergyMap const &weights, EnergyMap &emap) const |
void | copy_from (Constraints const &) |
Private Attributes | |
ConstraintCOPs | constraints_ |
|
virtual |
Automatically generated virtual destructor for class deriving directly from ReferenceCount.
Auto-generated virtual destructor
core::scoring::constraints::Constraints::Constraints | ( | ) |
Referenced by clone().
core::scoring::constraints::Constraints::Constraints | ( | Constraints const & | other | ) |
References copy_from().
void core::scoring::constraints::Constraints::add_constraint | ( | ConstraintCOP | cst | ) |
References constraints_.
Referenced by core::scoring::constraints::ConstraintSet::add_constraint().
Constraints::const_iterator core::scoring::constraints::Constraints::begin | ( | ) | const |
void core::scoring::constraints::Constraints::clear | ( | ) |
References constraints_.
Referenced by core::scoring::constraints::ConstraintSet::clear().
ConstraintsOP core::scoring::constraints::Constraints::clone | ( | ) | const |
References Constraints().
void core::scoring::constraints::Constraints::conformation_energy | ( | Conformation const & | conformation, |
EnergyMap const & | weights, | ||
EnergyMap & | emap | ||
) | const |
References energy().
Referenced by core::scoring::constraints::ConstraintSet::eval_non_residue_pair_energy().
|
inline |
References constraints_.
|
private |
References constraints_.
Referenced by Constraints(), and operator=().
Constraints::const_iterator core::scoring::constraints::Constraints::end | ( | ) | const |
|
private |
private does not zero the emap entries before accumulating
References constraints_, cst, and core::scoring::constraints::Constraint::score().
Referenced by conformation_energy(), intra_residue_energy(), and residue_pair_energy().
void core::scoring::constraints::Constraints::eval_intrares_atom_derivative | ( | id::AtomID const & | atom_id, |
conformation::Residue const & | residue, | ||
EnergyMap const & | weights, | ||
Vector & | F1, | ||
Vector & | F2 | ||
) | const |
Evaluate derivatives giving the Constraint objects held within this object a single residue. Warning: if this Constraints object contains Constraint objects that operate on other residues besides the one being given them, then this function will cause the program to exit.
References constraints_, cst, and core::scoring::constraints::Constraint::fill_f1_f2().
void core::scoring::constraints::Constraints::eval_respair_atom_derivative | ( | id::AtomID const & | atom_id, |
conformation::Residue const & | residue1, | ||
conformation::Residue const & | residue2, | ||
EnergyMap const & | weights, | ||
Vector & | F1, | ||
Vector & | F2 | ||
) | const |
Evaluate derivatives giving the Constraint objects held within this object two residues. Warning: if this Constraints object contains Constraint objects that operate on other residues besides the two being given them, then this function will cause the program to exit.
References constraints_, cst, and core::scoring::constraints::Constraint::fill_f1_f2().
void core::scoring::constraints::Constraints::eval_ws_atom_derivative | ( | id::AtomID const & | atom_id, |
conformation::Conformation const & | conformation, | ||
EnergyMap const & | weights, | ||
Vector & | F1, | ||
Vector & | F2 | ||
) | const |
Evaluate derivatives giving the Constraint objects held within this object the entire Conformation (a whole structure, ws) with which to work.
References constraints_, cst, and core::scoring::constraints::Constraint::fill_f1_f2().
Referenced by core::scoring::constraints::ConstraintSet::deprecated_eval_atom_derivative(), and core::scoring::constraints::ConstraintSet::eval_multibody_atom_derivative().
void core::scoring::constraints::Constraints::intra_residue_energy | ( | Residue const & | rsd, |
EnergyMap const & | weights, | ||
EnergyMap & | emap | ||
) | const |
will fail if Residue doesnt contain all the necessary atoms
will fail if Residues dont contain all the necessary atoms
References energy().
Constraints const & core::scoring::constraints::Constraints::operator= | ( | Constraints const & | rhs | ) |
References copy_from().
bool core::scoring::constraints::Constraints::remove_constraint | ( | ConstraintCOP | cst, |
bool | object_comparison | ||
) |
Returns true iff the constraint was successfully found and removed.
If this list contains the same constraint multiple times, only one copy of it is removed. I can't imagine why that scenario would ever come up, but still... flo jan '11 added object_comparison bool that triggers removal of constraint if the actual constraints are identical, even though they're different objects
References constraints_.
Referenced by core::scoring::constraints::ConstraintSet::remove_constraint().
void core::scoring::constraints::Constraints::residue_pair_energy | ( | Residue const & | rsd1, |
Residue const & | rsd2, | ||
EnergyMap const & | weights, | ||
EnergyMap & | emap | ||
) | const |
will fail if Residues dont contain all the necessary atoms
References energy().
Referenced by core::scoring::constraints::ConstraintSet::residue_pair_energy().
void core::scoring::constraints::Constraints::setup_for_derivatives | ( | core::scoring::func::XYZ_Func const & | xyz_func, |
ScoreFunction const & | scfxn | ||
) | const |
References constraints_.
Referenced by core::scoring::constraints::ConstraintSet::setup_for_derivatives().
void core::scoring::constraints::Constraints::setup_for_scoring | ( | core::scoring::func::XYZ_Func const & | xyz_func, |
ScoreFunction const & | scfxn | ||
) | const |
References constraints_.
Referenced by core::scoring::constraints::ConstraintSet::setup_for_scoring().
void core::scoring::constraints::Constraints::show | ( | std::ostream & | out | ) |
References constraints_, cst, and core::scoring::constraints::Constraint::show().
void core::scoring::constraints::Constraints::show_definition | ( | std::ostream & | out, |
pose::Pose const & | pose | ||
) | const |
References constraints_, cst, and core::scoring::constraints::Constraint::show_def().
|
virtual |
References constraints_, cst, and core::scoring::constraints::Constraint::show_violations().
Size core::scoring::constraints::Constraints::size | ( | ) | const |
|
private |
Referenced by add_constraint(), begin(), clear(), constraints(), copy_from(), end(), energy(), eval_intrares_atom_derivative(), eval_respair_atom_derivative(), eval_ws_atom_derivative(), remove_constraint(), setup_for_derivatives(), setup_for_scoring(), show(), show_definition(), show_violations(), and size().