Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
protocols::task_operations::ResfileCommandOperation Class Reference

Applies the equivalent of a resfile line (without the resnums) to residues specified in a residue selector. More...

#include <ResfileCommandOperation.hh>

Inheritance diagram for protocols::task_operations::ResfileCommandOperation:
Inheritance graph
[legend]

Public Member Functions

 ResfileCommandOperation ()
 
 ResfileCommandOperation (core::select::residue_selector::ResidueSelectorCOP selector, std::string const &command)
 
 ResfileCommandOperation (ResfileCommandOperation const &src)
 
 ~ResfileCommandOperation () override
 
core::pack::task::operation::TaskOperationOP clone () const override
 Create another task operation of the type matching the most-derived version of the class. More...
 
void parse_tag (utility::tag::TagCOP tag, basic::datacache::DataMap &) override
 Configure from a RosettaScripts XML tag. More...
 
void apply (core::pose::Pose const &pose, core::pack::task::PackerTask &task) const override
 Change a packer task in some way. The input pose is the one to which the input task will be later applied. More...
 
void set_command (std::string const &command)
 A resfile command string without any numbers in the front. eg: POLAR PIKAA X[R2]X[T6]X[OP5]. More...
 
void set_residue_selector (core::select::residue_selector::ResidueSelectorCOP selector)
 
- Public Member Functions inherited from core::pack::task::operation::TaskOperation
 ~TaskOperation () override
 
virtual bool task_operation_provides_citation_info () const
 Does this task operation provide information about how to cite it? More...
 
virtual utility::vector1
< basic::citation_manager::CitationCollectionCOP > 
provide_citation_info () const
 Provide the citation. More...
 
virtual bool task_operation_is_unpublished () const
 Does this task_operation indicate that it is unpublished (and, by extension, that the author should be included in publications resulting from it)? More...
 
virtual utility::vector1
< basic::citation_manager::UnpublishedModuleInfoCOP > 
provide_authorship_info_for_unpublished () const
 Provide a list of authors and their e-mail addresses, as strings. More...
 

Static Public Member Functions

static std::string keyname ()
 Return the name used to construct this TaskOperation from an XML file. More...
 
static void provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd)
 Describe the format of XML file used to initialize this TaskOperation. More...
 

Private Attributes

std::map< std::string,
core::pack::task::ResfileCommandOP
command_map_
 
core::select::residue_selector::ResidueSelectorCOP selector_ = nullptr
 
std::string command_ = ""
 
utility::vector1
< core::pack::task::ResfileCommandOP
commands_
 

Additional Inherited Members

- Public Types inherited from core::pack::task::operation::TaskOperation
typedef utility::tag::TagCOP TagCOP
 
typedef basic::datacache::DataMap DataMap
 
typedef pose::Pose Pose
 

Detailed Description

Applies the equivalent of a resfile line (without the resnums) to residues specified in a residue selector.

Constructor & Destructor Documentation

protocols::task_operations::ResfileCommandOperation::ResfileCommandOperation ( )
protocols::task_operations::ResfileCommandOperation::ResfileCommandOperation ( core::select::residue_selector::ResidueSelectorCOP  selector,
std::string const &  command 
)
protocols::task_operations::ResfileCommandOperation::ResfileCommandOperation ( ResfileCommandOperation const &  src)
protocols::task_operations::ResfileCommandOperation::~ResfileCommandOperation ( )
override

Member Function Documentation

void protocols::task_operations::ResfileCommandOperation::apply ( core::pose::Pose const &  ,
core::pack::task::PackerTask  
) const
overridevirtual

Change a packer task in some way. The input pose is the one to which the input task will be later applied.

Implements core::pack::task::operation::TaskOperation.

References command_, commands_, core::select::residue_selector::selection_positions(), and selector_.

TaskOperationOP protocols::task_operations::ResfileCommandOperation::clone ( ) const
overridevirtual

Create another task operation of the type matching the most-derived version of the class.

Implements core::pack::task::operation::TaskOperation.

std::string protocols::task_operations::ResfileCommandOperation::keyname ( )
static

Return the name used to construct this TaskOperation from an XML file.

Referenced by protocols::task_operations::ResfileCommandOperationCreator::keyname(), and provide_xml_schema().

void protocols::task_operations::ResfileCommandOperation::parse_tag ( utility::tag::TagCOP  tag,
basic::datacache::DataMap &  data 
)
overridevirtual
void protocols::task_operations::ResfileCommandOperation::provide_xml_schema ( utility::tag::XMLSchemaDefinition &  xsd)
static
void protocols::task_operations::ResfileCommandOperation::set_command ( std::string const &  command)

A resfile command string without any numbers in the front. eg: POLAR PIKAA X[R2]X[T6]X[OP5].

References command_, command_map_, commands_, and core::pack::task::parse_res_agnostic_commands().

Referenced by parse_tag(), and ResfileCommandOperation().

void protocols::task_operations::ResfileCommandOperation::set_residue_selector ( core::select::residue_selector::ResidueSelectorCOP  selector)

References selector_.

Referenced by parse_tag(), and ResfileCommandOperation().

Member Data Documentation

std::string protocols::task_operations::ResfileCommandOperation::command_ = ""
private
std::map< std::string, core::pack::task::ResfileCommandOP > protocols::task_operations::ResfileCommandOperation::command_map_
private
utility::vector1< core::pack::task::ResfileCommandOP > protocols::task_operations::ResfileCommandOperation::commands_
private

Referenced by apply(), and set_command().

core::select::residue_selector::ResidueSelectorCOP protocols::task_operations::ResfileCommandOperation::selector_ = nullptr
private

The documentation for this class was generated from the following files: