![]() |
Rosetta
2021.16
|
A simple selector that returns the set subset. This is to enable simplification of code-based interfaces to residue selectors, so that one may accept only selectors, but using this selector, we can set subsets. More...
#include <ReturnResidueSubsetSelector.hh>

Public Types | |
| typedef core::select::residue_selector::ResidueSelectorOP | ResidueSelectorOP |
| typedef core::select::residue_selector::ResidueSubset | ResidueSubset |
Public Member Functions | |
| ReturnResidueSubsetSelector () | |
| Constructor. More... | |
| ReturnResidueSubsetSelector (ResidueSubset const &subset) | |
| ReturnResidueSubsetSelector (ReturnResidueSubsetSelector const &src) | |
| Copy Constructor. Usually not necessary unless you need deep copying (e.g. OPs) More... | |
| ~ReturnResidueSubsetSelector () override | |
| Destructor. More... | |
| ResidueSelectorOP | clone () const override |
| Clone operator. More... | |
| void | set_residue_subset (ResidueSubset const &subset) |
| Set the ResidueSubset, which will be returned at apply-time. More... | |
| ResidueSubset | apply (core::pose::Pose const &pose) const override |
| "Apply" function. More... | |
| void | parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &datamap) override |
| XML parse. More... | |
| std::string | get_name () const override |
| Get the mover class name. More... | |
| ResidueSubset & | subset () |
| Return an editable reference to the stored residue subset. Please be careful with this. Use with knowledge. It is here to speed up some parts instead of creating a new subset at each point in some protocol. More... | |
Public Member Functions inherited from core::select::residue_selector::ResidueSelector | |
| ResidueSelector () | |
| Constructor. More... | |
| ~ResidueSelector () override | |
| Destructor. More... | |
| virtual void | provide_citation_info (basic::citation_manager::CitationCollectionList &) const |
| Provide citations to the passed CitationCollectionList Subclasses should add the info for themselves and any other classes they use. More... | |
Static Public Member Functions | |
| static std::string | class_name () |
| Get the mover class name. More... | |
| static void | provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd) |
| Provide XSD information, enabling mechanical validation of input XML. More... | |
Private Attributes | |
| ResidueSubset | subset_ |
A simple selector that returns the set subset. This is to enable simplification of code-based interfaces to residue selectors, so that one may accept only selectors, but using this selector, we can set subsets.
This greatly reduces the c++ interface complexity and private variable - complexity arising from accepting BOTH ResidueSubsets and ResidueSelectors (Which I'm terribly sick of doing at this point).
| typedef core::select::residue_selector::ResidueSelectorOP core::select::residue_selector::ReturnResidueSubsetSelector::ResidueSelectorOP |
| typedef core::select::residue_selector::ResidueSubset core::select::residue_selector::ReturnResidueSubsetSelector::ResidueSubset |
| core::select::residue_selector::ReturnResidueSubsetSelector::ReturnResidueSubsetSelector | ( | ) |
Constructor.
| core::select::residue_selector::ReturnResidueSubsetSelector::ReturnResidueSubsetSelector | ( | ResidueSubset const & | subset | ) |
|
default |
Copy Constructor. Usually not necessary unless you need deep copying (e.g. OPs)
|
overridedefault |
Destructor.
|
overridevirtual |
"Apply" function.
Return the set subset.
Given the pose, generate a vector of bools with entries for every residue in the pose indicating whether each residue is selected ("true") or not ("false").
Implements core::select::residue_selector::ResidueSelector.
References subset_.
|
static |
Get the mover class name.
Referenced by get_name().
|
overridevirtual |
Clone operator.
Clone function.
Copy the current object (creating the copy on the heap) and return an owning pointer to the copy. All ResidueSelectors must implement this.
Copy this object and return owning pointer to the copy (created on the heap).
Implements core::select::residue_selector::ResidueSelector.
Referenced by protocols::fold_from_loops::movers::NubInitioLoopClosureMover::active_packable_residues().
|
overridevirtual |
Get the mover class name.
Implements core::select::residue_selector::ResidueSelector.
References class_name().
|
overridevirtual |
XML parse.
Parse RosettaScripts tags and set up this mover.
Reimplemented from core::select::residue_selector::ResidueSelector.
|
static |
Provide XSD information, enabling mechanical validation of input XML.
| void core::select::residue_selector::ReturnResidueSubsetSelector::set_residue_subset | ( | ResidueSubset const & | subset | ) |
Set the ResidueSubset, which will be returned at apply-time.
References subset(), and subset_.
Referenced by protocols::fold_from_loops::movers::NubInitioLoopClosureMover::active_movable_residues().
| ResidueSubset & core::select::residue_selector::ReturnResidueSubsetSelector::subset | ( | ) |
Return an editable reference to the stored residue subset. Please be careful with this. Use with knowledge. It is here to speed up some parts instead of creating a new subset at each point in some protocol.
References subset_.
Referenced by set_residue_subset().
|
private |
Referenced by apply(), set_residue_subset(), and subset().
1.8.7