Rosetta
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
core::simple_metrics::SimpleMetricFactory Class Reference

#include <SimpleMetricFactory.hh>

Inheritance diagram for core::simple_metrics::SimpleMetricFactory:
Inheritance graph
[legend]

Public Types

typedef std::map< std::string, SimpleMetricCreatorOPCreatorMap
 

Public Member Functions

 SimpleMetricFactory ()
 
void factory_register (SimpleMetricCreatorOP creator)
 
bool has_type (std::string const &simple_metric_name) const
 
SimpleMetricOP new_simple_metric (std::string const &constraint_generator_name, utility::tag::TagCOP tag, basic::datacache::DataMap &datamap) const
 
void provide_xml_schema (std::string const &selector_name, utility::tag::XMLSchemaDefinition &xsd) const
 Get the XML schema for a given residue selector. More...
 
void define_simple_metric_xml_schema (utility::tag::XMLSchemaDefinition &xsd) const
 
std::string get_citation_humanreadable (std::string const &metric_name) const
 Get a human-readable listing of the citations for a given simple metric, by metric name. More...
 
CreatorMap const & creator_map () const
 Access the map of name->creator. Used only for testing. More...
 

Static Public Member Functions

static std::string simple_metric_xml_schema_group_name ()
 

Private Attributes

CreatorMap creator_map_
 

Member Typedef Documentation

◆ CreatorMap

Constructor & Destructor Documentation

◆ SimpleMetricFactory()

core::simple_metrics::SimpleMetricFactory::SimpleMetricFactory ( )

Member Function Documentation

◆ creator_map()

SimpleMetricFactory::CreatorMap const & core::simple_metrics::SimpleMetricFactory::creator_map ( ) const

Access the map of name->creator. Used only for testing.

References creator_map_.

◆ define_simple_metric_xml_schema()

void core::simple_metrics::SimpleMetricFactory::define_simple_metric_xml_schema ( utility::tag::XMLSchemaDefinition &  xsd) const

◆ factory_register()

void core::simple_metrics::SimpleMetricFactory::factory_register ( SimpleMetricCreatorOP  creator)

References creator_map_.

◆ get_citation_humanreadable()

std::string core::simple_metrics::SimpleMetricFactory::get_citation_humanreadable ( std::string const &  metric_name) const

Get a human-readable listing of the citations for a given simple metric, by metric name.

Returns an empty string if there are no citations.

Author
Vikram K. Mulligan (vmull.nosp@m.igan.nosp@m.@flat.nosp@m.iron.nosp@m.insti.nosp@m.tute.nosp@m..org).

References creator_map_, and new_simple_metric().

Referenced by protocols::rosetta_scripts::print_information().

◆ has_type()

bool core::simple_metrics::SimpleMetricFactory::has_type ( std::string const &  simple_metric_name) const

◆ new_simple_metric()

SimpleMetricOP core::simple_metrics::SimpleMetricFactory::new_simple_metric ( std::string const &  constraint_generator_name,
utility::tag::TagCOP  tag,
basic::datacache::DataMap datamap 
) const

References creator_map_, and has_type().

Referenced by get_citation_humanreadable().

◆ provide_xml_schema()

void core::simple_metrics::SimpleMetricFactory::provide_xml_schema ( std::string const &  metric_name,
utility::tag::XMLSchemaDefinition &  xsd 
) const

Get the XML schema for a given residue selector.

Get the XML schema for a given simple metric.

Throws an error if the residue selector is unknown to Rosetta.

Author
Vikram K. Mulligan (vmull.nosp@m.ig@u.nosp@m.w.edu)

References creator_map_, and has_type().

Referenced by protocols::rosetta_scripts::print_information().

◆ simple_metric_xml_schema_group_name()

std::string core::simple_metrics::SimpleMetricFactory::simple_metric_xml_schema_group_name ( )
static

Member Data Documentation

◆ creator_map_

CreatorMap core::simple_metrics::SimpleMetricFactory::creator_map_
private

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