![]() |
Rosetta Protocols
2014.35
|
#include <RestrictToNeighborhoodOperation.hh>
Public Types | |
typedef RestrictOperationsBase | parent |
typedef std::set< core::Size > | SizeSet |
![]() | |
typedef core::pack::task::operation::TaskOperation | TaskOperation |
typedef core::pack::task::operation::TaskOperationOP | TaskOperationOP |
typedef TaskOperation | parent |
Private Member Functions | |
void | make_calculator (std::set< core::Size > const ¢ral_residues, core::Real dist_cutoff) |
constructor helper function - makes the PoseMetricCalculator More... | |
void | make_calculator (std::set< core::Size > const ¢ral_residues) |
constructor helper function - makes the PoseMetricCalculator More... | |
void | make_name (std::set< core::Size > const ¢ral_residues) |
constructor helper function - names the PoseMetricCalculator More... | |
Private Attributes | |
std::string | calculator_name_ |
Additional Inherited Members | |
![]() | |
void | run_calculator (core::pose::Pose const &pose, std::string const &calculator, std::string const &calculation, utility::vector1_bool &residues) const |
this is the only real function - it takes a calculator name and calculation, and a PackerTask-compatible vector, and flips booleans in the vector according to the calculator More... | |
this class is a TaskOperation to prevent repacking of residues not near a neighborhood. Internally it just user NeighborhoodByDistanceCalculator to do all the work. You are allowed a "calculator name" interface to tell it which you-constructed calculator to use, or you can give it a set of residues and a desired distance cutoff to have it define the calculator itself. (There is no need to use both interfaces).
typedef RestrictOperationsBase protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::parent |
typedef std::set< core::Size > protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::SizeSet |
protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::RestrictToNeighborhoodOperation | ( | ) |
protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::RestrictToNeighborhoodOperation | ( | RestrictToNeighborhoodOperation const & | rhs | ) |
protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::RestrictToNeighborhoodOperation | ( | std::set< core::Size > const & | central_residues, |
core::Real const | dist_cutoff | ||
) |
References make_calculator().
protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::RestrictToNeighborhoodOperation | ( | std::set< core::Size > const & | central_residues | ) |
uses option system default for dist_cutoff
this ctor generates calculators (easier to use but will rely on defaults, including default distance cutoff)
References make_calculator().
protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::RestrictToNeighborhoodOperation | ( | std::string const & | calculator | ) |
this ctor assumes a pregenerated Neighborhood and Neighbors calculators - if you want a particular non-default cutoff distance, assemble those calculators separately then pass them to this operation.
|
virtual |
|
virtual |
Implements protocols::toolbox::task_operations::RestrictOperationsBase.
References calculator_name_, protocols::antibody::design::repack, core::pack::task::PackerTask::restrict_to_residues(), protocols::toolbox::task_operations::RestrictOperationsBase::run_calculator(), and core::pose::Pose::total_residue().
|
virtual |
be warned if you use clone that you'll not get a new interface calculator
Implements protocols::toolbox::task_operations::RestrictOperationsBase.
References RestrictToNeighborhoodOperation().
protocols::toolbox::pose_metric_calculators::NeighborhoodByDistanceCalculatorCOP protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::get_calculator | ( | ) | const |
look up actual calculator object
References calculator_name_.
Referenced by get_central_residues(), and get_distance_cutoff().
|
inline |
trivially returns underlying calculator string name
References calculator_name_.
Referenced by operator=().
std::set< core::Size > const & protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::get_central_residues | ( | ) | const |
this nontrivially checks the underlying calculator
References get_calculator().
core::Real protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::get_distance_cutoff | ( | ) | const |
this nontrivially checks the underlying calculator
References get_calculator().
|
private |
constructor helper function - makes the PoseMetricCalculator
private helper function to make calculator - runs in the ctor
References calculator_name_, make_name(), and Warning().
Referenced by RestrictToNeighborhoodOperation(), and set_neighborhood_parameters().
|
private |
constructor helper function - makes the PoseMetricCalculator
private helper function to make calculator - runs in the ctor
References calculator_name_, make_name(), and Warning().
|
private |
constructor helper function - names the PoseMetricCalculator
private helper function to name calculator- runs in the ctor
References calculator_name_, end, and utility::to_string().
Referenced by make_calculator().
RestrictToNeighborhoodOperation & protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::operator= | ( | RestrictToNeighborhoodOperation const & | rhs | ) |
assignment operator
References calculator_name_, and get_calculator_name().
|
inline |
References calculator_name_.
void protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::set_neighborhood_parameters | ( | SizeSet const & | central_residues, |
core::Real | dist_cutoff | ||
) |
reskin of normal make_calculator
References make_calculator().
void protocols::toolbox::task_operations::RestrictToNeighborhoodOperation::set_neighborhood_parameters | ( | SizeSet const & | central_residues | ) |
reskin of normal make_calculator
References make_calculator().
|
private |
Referenced by apply(), get_calculator(), get_calculator_name(), make_calculator(), make_name(), operator=(), and set_calculator_by_name().