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

#include <XmlObjects.hh>

Inheritance diagram for protocols::rosetta_scripts::XmlObjects:
Inheritance graph
[legend]

Public Member Functions

 XmlObjects ()
 
 ~XmlObjects () override
 
 XmlObjects (XmlObjects const &src)
 
XmlObjectsoperator= (XmlObjects const &src)
 
void init_from_maps (basic::datacache::DataMap &data)
 Initialization function from the DataMaps. More...
 
utility::vector1< std::string > list_score_functions () const
 List all the ScoreFunctions contained by name. More...
 
utility::vector1< std::string > list_residue_selectors () const
 List all the ResidueSelectors contained by name. More...
 
utility::vector1< std::string > list_simple_metrics () const
 List all the SimpleMetrics contained by name. More...
 
utility::vector1< std::string > list_filters () const
 List all the Filters contained by name. More...
 
utility::vector1< std::string > list_movers () const
 List all the Movers contained by name. More...
 
utility::vector1< std::string > list_task_operations () const
 List all the TaskOperations by name. More...
 
core::scoring::ScoreFunctionOP get_score_function (std::string const &name) const
 Extract a ScoreFunction by name after using one of the create* methods. More...
 
core::select::residue_selector::ResidueSelectorOP get_residue_selector (std::string const &name) const
 Extract a ResidueSelector by name after using one of the create* methods. More...
 
core::simple_metrics::SimpleMetricOP get_simple_metric (std::string const &name) const
 Extract a SimpleMetric by name after using one of the create* methods. More...
 
protocols::filters::FilterOP get_filter (std::string const &name) const
 Extract a Filter by name after using one of the create* methods. More...
 
protocols::moves::MoverOP get_mover (std::string const &name) const
 Extract a Mover by name after using one of the create* methods. More...
 
core::pack::task::operation::TaskOperationOP get_task_operation (std::string const &name) const
 Extract a TaskOperation by name after using one of the create* methods. More...
 
void show (std::ostream &output=std::cout) const
 Generate string representation of XmlObjects for debugging purposes. More...
 

Static Public Member Functions

static XmlObjectsCOP create_from_string (std::string const &xml_text)
 Parses an xml-formatted string and returns an XmlObjects. More...
 
static XmlObjectsCOP create_from_string (std::string const &xml_text, core::pose::Pose &)
 Parses an xml-formatted string and returns an XmlObjects. More...
 
static XmlObjectsCOP create_from_string (std::string const &xml_text, utility::options::OptionCollection const &options)
 Parses an xml-formatted string and returns an XmlObjects. More...
 
static XmlObjectsCOP create_from_string (std::string const &xml_text, core::pose::Pose &, utility::options::OptionCollection const &options)
 Parses an xml-formatted string and returns an XmlObjects. More...
 
static XmlObjectsCOP create_from_file (std::string const &filename)
 Parses an xml file and returns an XmlObjects. More...
 
static XmlObjectsCOP create_from_file (std::string const &filename, core::pose::Pose &)
 Parses an xml file and returns an XmlObjects. More...
 
static XmlObjectsCOP create_from_file (std::string const &filename, utility::options::OptionCollection const &options)
 Parses an xml file and returns an XmlObjects. More...
 
static XmlObjectsCOP create_from_file (std::string const &filename, core::pose::Pose &, utility::options::OptionCollection const &options)
 Parses an xml file and returns an XmlObjects. More...
 
static
core::scoring::ScoreFunctionOP 
static_get_score_function (std::string const &xml_text)
 Constructs a single ScoreFunction from xml. More...
 
static
core::scoring::ScoreFunctionOP 
static_get_score_function (std::string const &xml_text, core::pose::Pose &)
 Constructs a single ScoreFunction from xml. More...
 
static
core::scoring::ScoreFunctionOP 
static_get_score_function (std::string const &xml_text, utility::options::OptionCollection const &options)
 Constructs a single ScoreFunction from xml. More...
 
static
core::scoring::ScoreFunctionOP 
static_get_score_function (std::string const &xml_text, core::pose::Pose &, utility::options::OptionCollection const &options)
 Constructs a single ScoreFunction from xml. More...
 
static
core::select::residue_selector::ResidueSelectorOP 
static_get_residue_selector (std::string const &xml_text)
 Constructs a single ResidueSelector from xml. More...
 
static
core::select::residue_selector::ResidueSelectorOP 
static_get_residue_selector (std::string const &xml_text, core::pose::Pose &)
 Constructs a single ResidueSelector from xml. More...
 
static
core::select::residue_selector::ResidueSelectorOP 
static_get_residue_selector (std::string const &xml_text, utility::options::OptionCollection const &options)
 Constructs a single ResidueSelector from xml. More...
 
static
core::select::residue_selector::ResidueSelectorOP 
static_get_residue_selector (std::string const &xml_text, core::pose::Pose &, utility::options::OptionCollection const &options)
 Constructs a single ResidueSelector from xml. More...
 
static
core::simple_metrics::SimpleMetricOP 
static_get_simple_metric (std::string const &xml_text)
 Constructs a single SimpleMetric from xml. More...
 
static
core::simple_metrics::SimpleMetricOP 
static_get_simple_metric (std::string const &xml_text, core::pose::Pose &)
 Constructs a single SimpleMetric from xml. More...
 
static
core::simple_metrics::SimpleMetricOP 
static_get_simple_metric (std::string const &xml_text, utility::options::OptionCollection const &options)
 Constructs a single SimpleMetric from xml. More...
 
static
core::simple_metrics::SimpleMetricOP 
static_get_simple_metric (std::string const &xml_text, core::pose::Pose &, utility::options::OptionCollection const &options)
 Constructs a single SimpleMetric from xml. More...
 
static protocols::filters::FilterOP static_get_filter (std::string const &xml_text)
 Constructs a single Filter from xml. More...
 
static protocols::filters::FilterOP static_get_filter (std::string const &xml_text, core::pose::Pose &)
 Constructs a single Filter from xml. More...
 
static protocols::filters::FilterOP static_get_filter (std::string const &xml_text, utility::options::OptionCollection const &options)
 Constructs a single Filter from xml. More...
 
static protocols::filters::FilterOP static_get_filter (std::string const &xml_text, core::pose::Pose &pose, utility::options::OptionCollection const &options)
 Constructs a single Filter from xml. More...
 
static protocols::moves::MoverOP static_get_mover (std::string const &xml_text)
 Constructs a single Mover from xml. More...
 
static protocols::moves::MoverOP static_get_mover (std::string const &xml_text, core::pose::Pose &)
 Constructs a single Mover from xml. More...
 
static protocols::moves::MoverOP static_get_mover (std::string const &xml_text, utility::options::OptionCollection const &options)
 Constructs a single Mover from xml. More...
 
static protocols::moves::MoverOP static_get_mover (std::string const &xml_text, core::pose::Pose &, utility::options::OptionCollection const &options)
 Constructs a single Mover from xml. More...
 
static
core::pack::task::operation::TaskOperationOP 
static_get_task_operation (std::string const &xml_text)
 Constructs a single TaskOperation from xml. More...
 
static
core::pack::task::operation::TaskOperationOP 
static_get_task_operation (std::string const &xml_text, core::pose::Pose &)
 Constructs a single TaskOperation from xml. More...
 
static
core::pack::task::operation::TaskOperationOP 
static_get_task_operation (std::string const &xml_text, utility::options::OptionCollection const &options)
 Constructs a single TaskOperation from xml. More...
 
static
core::pack::task::operation::TaskOperationOP 
static_get_task_operation (std::string const &xml_text, core::pose::Pose &, utility::options::OptionCollection const &options)
 Constructs a single TaskOperation from xml. More...
 

Static Private Member Functions

static std::string get_or_set_tag_name (std::string &tag_string)
 Gets a tag's name field or sets it to XmlObject_name. More...
 
static void prepare_xml_text (std::string &xml_text)
 Wraps an xml script with <ROSETTASCRIPTS> and adds a <PROTOCOLS> section if these don't exist already. More...
 

Private Attributes

std::map< std::string,
core::scoring::ScoreFunctionCOP
score_functions_
 
std::map< std::string,
core::select::residue_selector::ResidueSelectorCOP
residue_selectors_
 
std::map< std::string,
core::simple_metrics::SimpleMetricCOP
simple_metrics_
 
std::map< std::string,
protocols::filters::FilterCOP
filters_
 
std::map< std::string,
protocols::moves::MoverCOP
movers_
 
std::map< std::string,
core::pack::task::operation::TaskOperationCOP
task_operations_
 

Friends

std::ostream & operator<< (std::ostream &output, XmlObjects const &object_to_output)
 Insertion operator (overloaded so that XmlObjects can be "printed" in PyRosetta). More...
 

Constructor & Destructor Documentation

protocols::rosetta_scripts::XmlObjects::XmlObjects ( )
default
protocols::rosetta_scripts::XmlObjects::~XmlObjects ( )
overridedefault
protocols::rosetta_scripts::XmlObjects::XmlObjects ( XmlObjects const &  src)
default

Member Function Documentation

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_file ( std::string const &  filename)
static

Parses an xml file and returns an XmlObjects.

The ParsedProtocol (xml script mover) is available as "ParsedProtocol"

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_file ( std::string const &  filename,
core::pose::Pose  
)
static

Parses an xml file and returns an XmlObjects.

The ParsedProtocol (xml script mover) is available as "ParsedProtocol" The pose parameter is ignored, and exists oly for backwards compatibility.

The ParsedProtocol (xml script mover) is available as "ParsedProtocol" The pose parameter is ignored, and exists only for backwards compatibility.

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_file ( std::string const &  filename,
utility::options::OptionCollection const &  options 
)
static

Parses an xml file and returns an XmlObjects.

The ParsedProtocol (xml script mover) is available as "ParsedProtocol"

References protocols::rosetta_scripts::RosettaScriptsParser::generate_mover(), and protocols::rosetta_scripts::TR().

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_file ( std::string const &  filename,
core::pose::Pose ,
utility::options::OptionCollection const &  options 
)
static

Parses an xml file and returns an XmlObjects.

The ParsedProtocol (xml script mover) is available as "ParsedProtocol" The pose parameter is ignored, and exists oly for backwards compatibility.

The ParsedProtocol (xml script mover) is available as "ParsedProtocol" The pose parameter is ignored, and exists only for backwards compatibility.

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_string ( std::string const &  xml_text)
static

Parses an xml-formatted string and returns an XmlObjects.

This function will wrap your script with <ROSETTASCRIPTS> if needed and will add a <PROTOCOLS> section if needed. The ParsedProtocol (xml script mover) is available as "ParsedProtocol".

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_string ( std::string const &  xml_text,
core::pose::Pose  
)
static

Parses an xml-formatted string and returns an XmlObjects.

This function will wrap your script with <ROSETTASCRIPTS> if needed and will add a <PROTOCOLS> section if needed. The ParsedProtocol (xml script mover) is available as "ParsedProtocol". The pose parameter is ignored, and provided only for backwards compatibility.

This function will wrap your script with <ROSETTASCRIPTS> if needed and will add a <PROTOCOLS> section if needed. The ParsedProtocol (xml script mover) is available as "ParsedProtocol". The pose parameter is ignored, and exists only for backwards compatibility.

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_string ( std::string const &  xml_text,
utility::options::OptionCollection const &  options 
)
static

Parses an xml-formatted string and returns an XmlObjects.

This function will wrap your script with <ROSETTASCRIPTS> if needed and will add a <PROTOCOLS> section if needed. The ParsedProtocol (xml script mover) is available as "ParsedProtocol".

References protocols::rosetta_scripts::RosettaScriptsParser::generate_mover_xml_string(), and protocols::rosetta_scripts::TR().

XmlObjectsCOP protocols::rosetta_scripts::XmlObjects::create_from_string ( std::string const &  xml_text,
core::pose::Pose ,
utility::options::OptionCollection const &  options 
)
static

Parses an xml-formatted string and returns an XmlObjects.

This function will wrap your script with <ROSETTASCRIPTS> if needed and will add a <PROTOCOLS> section if needed. The ParsedProtocol (xml script mover) is available as "ParsedProtocol". The pose parameter is ignored, and exists only for backwards compatibility.

filters::FilterOP protocols::rosetta_scripts::XmlObjects::get_filter ( std::string const &  name) const

Extract a Filter by name after using one of the create* methods.

This returns a clone and cannot be used to modify the ParsedProtocol

moves::MoverOP protocols::rosetta_scripts::XmlObjects::get_mover ( std::string const &  name) const

Extract a Mover by name after using one of the create* methods.

This returns a clone and cannot be used to modify the ParsedProtocol

std::string protocols::rosetta_scripts::XmlObjects::get_or_set_tag_name ( std::string &  tag_string)
staticprivate

Gets a tag's name field or sets it to XmlObject_name.

select::residue_selector::ResidueSelectorOP protocols::rosetta_scripts::XmlObjects::get_residue_selector ( std::string const &  name) const

Extract a ResidueSelector by name after using one of the create* methods.

This returns a clone and cannot be used to modify the ParsedProtocol

scoring::ScoreFunctionOP protocols::rosetta_scripts::XmlObjects::get_score_function ( std::string const &  name) const

Extract a ScoreFunction by name after using one of the create* methods.

This returns a clone and cannot be used to modify the ParsedProtocol

core::simple_metrics::SimpleMetricOP protocols::rosetta_scripts::XmlObjects::get_simple_metric ( std::string const &  name) const

Extract a SimpleMetric by name after using one of the create* methods.

This returns a clone and cannot be used to modify the ParsedProtocol

pack::task::operation::TaskOperationOP protocols::rosetta_scripts::XmlObjects::get_task_operation ( std::string const &  name) const

Extract a TaskOperation by name after using one of the create* methods.

This returns a clone and cannot be used to modify the ParsedProtocol

void protocols::rosetta_scripts::XmlObjects::init_from_maps ( basic::datacache::DataMap &  data)

Initialization function from the DataMaps.

References core::scoring::pair.

utility::vector1< std::string > protocols::rosetta_scripts::XmlObjects::list_filters ( ) const

List all the Filters contained by name.

References core::scoring::pair.

utility::vector1< std::string > protocols::rosetta_scripts::XmlObjects::list_movers ( ) const

List all the Movers contained by name.

References core::scoring::pair.

utility::vector1< std::string > protocols::rosetta_scripts::XmlObjects::list_residue_selectors ( ) const

List all the ResidueSelectors contained by name.

References core::scoring::pair.

utility::vector1< std::string > protocols::rosetta_scripts::XmlObjects::list_score_functions ( ) const

List all the ScoreFunctions contained by name.

References core::scoring::pair.

utility::vector1< std::string > protocols::rosetta_scripts::XmlObjects::list_simple_metrics ( ) const

List all the SimpleMetrics contained by name.

References core::scoring::pair.

utility::vector1< std::string > protocols::rosetta_scripts::XmlObjects::list_task_operations ( ) const

List all the TaskOperations by name.

References core::scoring::pair.

XmlObjects & protocols::rosetta_scripts::XmlObjects::operator= ( XmlObjects const &  src)
default
void protocols::rosetta_scripts::XmlObjects::prepare_xml_text ( std::string &  xml_text)
staticprivate

Wraps an xml script with <ROSETTASCRIPTS> and adds a <PROTOCOLS> section if these don't exist already.

Wraps an xml script with <ROSETTASCRIPTS> and adds a <PROTOCOLS> section if these don't exist already. This function will fail if someone has a mover named ROSETTASCRIPTS or PROTOCOLS or has those words in a comment. These string.find methods aren't the best solution here, but without regular expressions (to catch things like < ROSETTASCRIPTS >), correctly determing whether or not to intervene is complicated. -bcov.

void protocols::rosetta_scripts::XmlObjects::show ( std::ostream &  output = std::cout) const

Generate string representation of XmlObjects for debugging purposes.

References core::scoring::pair.

Referenced by protocols::rosetta_scripts::operator<<().

protocols::filters::FilterOP protocols::rosetta_scripts::XmlObjects::static_get_filter ( std::string const &  xml_text)
static

Constructs a single Filter from xml.

Pass this function a single Filter tag and it will return to you that Filter. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

protocols::filters::FilterOP protocols::rosetta_scripts::XmlObjects::static_get_filter ( std::string const &  xml_text,
core::pose::Pose  
)
static

Constructs a single Filter from xml.

Pass this function a single Filter tag and it will return to you that Filter. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

protocols::filters::FilterOP protocols::rosetta_scripts::XmlObjects::static_get_filter ( std::string const &  xml_text_in,
utility::options::OptionCollection const &  options 
)
static

Constructs a single Filter from xml.

Pass this function a single Filter tag and it will return to you that Filter. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

References protocols::rosetta_scripts::TR().

protocols::filters::FilterOP protocols::rosetta_scripts::XmlObjects::static_get_filter ( std::string const &  xml_text,
core::pose::Pose pose,
utility::options::OptionCollection const &  options 
)
static

Constructs a single Filter from xml.

Pass this function a single Filter tag and it will return to you that Filter. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

protocols::moves::MoverOP protocols::rosetta_scripts::XmlObjects::static_get_mover ( std::string const &  xml_text)
static

Constructs a single Mover from xml.

Pass this function a single Mover tag and it will return to you that Mover. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

protocols::moves::MoverOP protocols::rosetta_scripts::XmlObjects::static_get_mover ( std::string const &  xml_text,
core::pose::Pose  
)
static

Constructs a single Mover from xml.

Pass this function a single Mover tag and it will return to you that Mover. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

protocols::moves::MoverOP protocols::rosetta_scripts::XmlObjects::static_get_mover ( std::string const &  xml_text_in,
utility::options::OptionCollection const &  options 
)
static

Constructs a single Mover from xml.

Pass this function a single Mover tag and it will return to you that Mover. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

References protocols::rosetta_scripts::TR().

protocols::moves::MoverOP protocols::rosetta_scripts::XmlObjects::static_get_mover ( std::string const &  xml_text,
core::pose::Pose ,
utility::options::OptionCollection const &  options 
)
static

Constructs a single Mover from xml.

Pass this function a single Mover tag and it will return to you that Mover. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

core::select::residue_selector::ResidueSelectorOP protocols::rosetta_scripts::XmlObjects::static_get_residue_selector ( std::string const &  xml_text)
static

Constructs a single ResidueSelector from xml.

Pass this function a single ResidueSelector tag and it will return to you that ResidueSelector. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

core::select::residue_selector::ResidueSelectorOP protocols::rosetta_scripts::XmlObjects::static_get_residue_selector ( std::string const &  xml_text,
core::pose::Pose  
)
static

Constructs a single ResidueSelector from xml.

Pass this function a single ResidueSelector tag and it will return to you that ResidueSelector. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

core::select::residue_selector::ResidueSelectorOP protocols::rosetta_scripts::XmlObjects::static_get_residue_selector ( std::string const &  xml_text_in,
utility::options::OptionCollection const &  options 
)
static

Constructs a single ResidueSelector from xml.

Pass this function a single ResidueSelector tag and it will return to you that ResidueSelector. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

References protocols::rosetta_scripts::TR().

core::select::residue_selector::ResidueSelectorOP protocols::rosetta_scripts::XmlObjects::static_get_residue_selector ( std::string const &  xml_text,
core::pose::Pose ,
utility::options::OptionCollection const &  options 
)
static

Constructs a single ResidueSelector from xml.

Pass this function a single ResidueSelector tag and it will return to you that ResidueSelector. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

core::scoring::ScoreFunctionOP protocols::rosetta_scripts::XmlObjects::static_get_score_function ( std::string const &  xml_text)
static

Constructs a single ScoreFunction from xml.

Pass this function a single <ScoreFunction> tag and it will return to you that ScoreFunction

core::scoring::ScoreFunctionOP protocols::rosetta_scripts::XmlObjects::static_get_score_function ( std::string const &  xml_text,
core::pose::Pose  
)
static

Constructs a single ScoreFunction from xml.

Pass this function a single <ScoreFunction> tag and it will return to you that ScoreFunction The pose parameter is ignored, and exists only for backwards compatibility.

core::scoring::ScoreFunctionOP protocols::rosetta_scripts::XmlObjects::static_get_score_function ( std::string const &  xml_text_in,
utility::options::OptionCollection const &  options 
)
static

Constructs a single ScoreFunction from xml.

Pass this function a single <ScoreFunction> tag and it will return to you that ScoreFunction

References protocols::rosetta_scripts::TR().

core::scoring::ScoreFunctionOP protocols::rosetta_scripts::XmlObjects::static_get_score_function ( std::string const &  xml_text,
core::pose::Pose ,
utility::options::OptionCollection const &  options 
)
static

Constructs a single ScoreFunction from xml.

Pass this function a single <ScoreFunction> tag and it will return to you that ScoreFunction The pose parameter is ignored, and exists only for backwards compatibility.

core::simple_metrics::SimpleMetricOP protocols::rosetta_scripts::XmlObjects::static_get_simple_metric ( std::string const &  xml_text)
static

Constructs a single SimpleMetric from xml.

Pass this function a single SimpleMetric tag and it will return to you that SimpleMetric. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

core::simple_metrics::SimpleMetricOP protocols::rosetta_scripts::XmlObjects::static_get_simple_metric ( std::string const &  xml_text,
core::pose::Pose  
)
static

Constructs a single SimpleMetric from xml.

Pass this function a single SimpleMetric tag and it will return to you that SimpleMetric. For C++ users, you may need The pose parameter is ignored, and exists only for backwards compatibility.

core::simple_metrics::SimpleMetricOP protocols::rosetta_scripts::XmlObjects::static_get_simple_metric ( std::string const &  xml_text,
utility::options::OptionCollection const &  options 
)
static

Constructs a single SimpleMetric from xml.

Pass this function a single SimpleMetric tag and it will return to you that SimpleMetric. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

References protocols::rosetta_scripts::TR().

core::simple_metrics::SimpleMetricOP protocols::rosetta_scripts::XmlObjects::static_get_simple_metric ( std::string const &  xml_text,
core::pose::Pose ,
utility::options::OptionCollection const &  options 
)
static

Constructs a single SimpleMetric from xml.

Pass this function a single SimpleMetric tag and it will return to you that SimpleMetric. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

core::pack::task::operation::TaskOperationOP protocols::rosetta_scripts::XmlObjects::static_get_task_operation ( std::string const &  xml_text)
static

Constructs a single TaskOperation from xml.

Pass this function a single TaskOperation tag and it will return to you that TaskOperation. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

core::pack::task::operation::TaskOperationOP protocols::rosetta_scripts::XmlObjects::static_get_task_operation ( std::string const &  xml_text,
core::pose::Pose  
)
static

Constructs a single TaskOperation from xml.

Pass this function a single TaskOperation tag and it will return to you that TaskOperation. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

core::pack::task::operation::TaskOperationOP protocols::rosetta_scripts::XmlObjects::static_get_task_operation ( std::string const &  xml_text_in,
utility::options::OptionCollection const &  options 
)
static

Constructs a single TaskOperation from xml.

Pass this function a single TaskOperation tag and it will return to you that TaskOperation. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call.

References protocols::rosetta_scripts::TR().

core::pack::task::operation::TaskOperationOP protocols::rosetta_scripts::XmlObjects::static_get_task_operation ( std::string const &  xml_text,
core::pose::Pose ,
utility::options::OptionCollection const &  options 
)
static

Constructs a single TaskOperation from xml.

Pass this function a single TaskOperation tag and it will return to you that TaskOperation. For C++ users, you may need to use std::dynamic_pointer_cast< > after this call. The pose parameter is ignored, and exists only for backwards compatibility.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
XmlObjects const &  object_to_output 
)
friend

Insertion operator (overloaded so that XmlObjects can be "printed" in PyRosetta).

Member Data Documentation

std::map< std::string, protocols::filters::FilterCOP > protocols::rosetta_scripts::XmlObjects::filters_
private
std::map< std::string, protocols::moves::MoverCOP > protocols::rosetta_scripts::XmlObjects::movers_
private
std::map< std::string, core::select::residue_selector::ResidueSelectorCOP > protocols::rosetta_scripts::XmlObjects::residue_selectors_
private
std::map< std::string, core::scoring::ScoreFunctionCOP > protocols::rosetta_scripts::XmlObjects::score_functions_
private
std::map< std::string, core::simple_metrics::SimpleMetricCOP > protocols::rosetta_scripts::XmlObjects::simple_metrics_
private
std::map< std::string, core::pack::task::operation::TaskOperationCOP > protocols::rosetta_scripts::XmlObjects::task_operations_
private

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