Rosetta  2021.16
 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::loops::loops_definers::LoopsDatabaseDefiner Class Reference

#include <LoopsDatabaseDefiner.hh>

Inheritance diagram for protocols::loops::loops_definers::LoopsDatabaseDefiner:
Inheritance graph

Public Member Functions

 LoopsDatabaseDefiner ()
 ~LoopsDatabaseDefiner () override
 LoopsDatabaseDefiner (LoopsDatabaseDefiner const &src)
LoopsDefinerOP clone () const override
 Create another loops definer of the type matching the most-derived version of the class. More...
void parse_my_tag (utility::tag::TagCOP tag, basic::datacache::DataMap const &data) override
 Used to parse an xml-like tag to load parameters and properties. More...
SerializedLoopList apply (core::pose::Pose const &) override
- Public Member Functions inherited from protocols::loops::loops_definers::LoopsDefiner
 ~LoopsDefiner () override

Static Public Member Functions

static std::string class_name ()
static void provide_xml_schema (utility::tag::XMLSchemaDefinition &xsd)

Private Attributes

utility::sql_database::sessionOP db_session_
std::string database_table_

Detailed Description

@ details given a database table with the following schema, defining a single loop per row

CREATE TABLE loops ( tag TEXT, start INTEGER, stop INTEGER, cut INTEGER, skip_rate REAL, extended BOOLEAN);

return all loops associated with the job distributor input tag Note: you can specify a different table using the 'database_table' field

Note: if you would like to query the database for loops differently, you can either pre-query the table and store it, or extend, subclass, or create a different LoopsDefiner class.

Constructor & Destructor Documentation

protocols::loops::loops_definers::LoopsDatabaseDefiner::LoopsDatabaseDefiner ( )
protocols::loops::loops_definers::LoopsDatabaseDefiner::~LoopsDatabaseDefiner ( )
protocols::loops::loops_definers::LoopsDatabaseDefiner::LoopsDatabaseDefiner ( LoopsDatabaseDefiner const &  src)

Member Function Documentation

SerializedLoopList protocols::loops::loops_definers::LoopsDatabaseDefiner::apply ( core::pose::Pose const &  )
std::string protocols::loops::loops_definers::LoopsDatabaseDefiner::class_name ( )
LoopsDefinerOP protocols::loops::loops_definers::LoopsDatabaseDefiner::clone ( ) const

Create another loops definer of the type matching the most-derived version of the class.

Implements protocols::loops::loops_definers::LoopsDefiner.

void protocols::loops::loops_definers::LoopsDatabaseDefiner::parse_my_tag ( utility::tag::TagCOP  tag,
basic::datacache::DataMap const &  data 

Used to parse an xml-like tag to load parameters and properties.

Implements protocols::loops::loops_definers::LoopsDefiner.

References database_table_, db_session_, and protocols::rosetta_scripts::parse_database_session().

void protocols::loops::loops_definers::LoopsDatabaseDefiner::provide_xml_schema ( utility::tag::XMLSchemaDefinition &  xsd)

Member Data Documentation

std::string protocols::loops::loops_definers::LoopsDatabaseDefiner::database_table_

Referenced by apply(), and parse_my_tag().

utility::sql_database::sessionOP protocols::loops::loops_definers::LoopsDatabaseDefiner::db_session_

Referenced by parse_my_tag().

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