|
Rosetta 3.5
|
#include <ScoringScheme.hh>


Public Member Functions | |
| ScoringScheme () | |
| ctor More... | |
| virtual | ~ScoringScheme () |
| dtor More... | |
| virtual ScoringSchemeOP | clone () const =0 |
| clone method. More... | |
| virtual void | read_from_file (utility::file::FileName const &) |
| Initialize from a file. More... | |
| virtual void | read_data (utility::io::izstream &) |
| virtual Real | gap_open () const |
| Gets the gap opening penalty. More... | |
| virtual Real | gap_extend () const |
| Gets the gap extension penalty. More... | |
| void | gap_open (Real const gap_open) |
| Sets the gap opening penalty. More... | |
| void | gap_extend (Real const gap_extend) |
| Sets the gap extension penalty. More... | |
| std::string | type () const |
| getters for type, which is a unique string name for this object. More... | |
| void | type (std::string new_type) |
| getters for type, which is a unique string name for this object. More... | |
| virtual Real | score (SequenceOP seq1, SequenceOP seq2, Size pos1, Size pos2)=0 |
| void | unimplemented_method_error (std::string const &method_name) const |
| Utility method for producing useful error messages and exiting from program. Declared const which is funny, because exiting the program certainly changes the state of this object! This might be replaced with exception handling if we ever start using those. More... | |
| bool | is_good (Real const &num) |
Private Attributes | |
| Real | gap_open_ |
| Real | gap_extend_ |
| std::string | type_ |
Definition at line 41 of file ScoringScheme.hh.
| core::sequence::ScoringScheme::ScoringScheme | ( | ) |
ctor
Definition at line 33 of file ScoringScheme.cc.
|
virtual |
dtor
Definition at line 36 of file ScoringScheme.cc.
|
pure virtual |
clone method.
Implemented in core::sequence::MatrixScoringScheme, core::sequence::PairScoringScheme, core::sequence::ProfSimScoringScheme, core::sequence::CompositeScoringScheme, core::sequence::SimpleScoringScheme, core::sequence::DPScoringScheme, core::sequence::L1ScoringScheme, core::sequence::CompassScoringScheme, and core::sequence::ChemicalShiftScoringScheme.
|
virtual |
Gets the gap extension penalty.
Definition at line 55 of file ScoringScheme.cc.
References gap_extend_.
Referenced by core::sequence::ChemicalShiftScoringScheme::ChemicalShiftScoringScheme(), core::sequence::ChemicalShiftScoringScheme::clone(), core::sequence::CompassScoringScheme::clone(), core::sequence::DPScoringScheme::clone(), core::sequence::L1ScoringScheme::clone(), core::sequence::SimpleScoringScheme::clone(), core::sequence::CompositeScoringScheme::clone(), core::sequence::ProfSimScoringScheme::clone(), core::sequence::PairScoringScheme::clone(), core::sequence::MatrixScoringScheme::clone(), core::sequence::CompassScoringScheme::CompassScoringScheme(), core::sequence::CompositeScoringScheme::CompositeScoringScheme(), core::sequence::DPScoringScheme::DPScoringScheme(), gap_extend(), core::sequence::L1ScoringScheme::L1ScoringScheme(), core::sequence::MatrixScoringScheme::MatrixScoringScheme(), core::sequence::PairScoringScheme::PairScoringScheme(), core::sequence::ProfSimScoringScheme::ProfSimScoringScheme(), and core::sequence::SimpleScoringScheme::SimpleScoringScheme().
| void core::sequence::ScoringScheme::gap_extend | ( | Real const | gap_extend) |
Sets the gap extension penalty.
Definition at line 65 of file ScoringScheme.cc.
References gap_extend(), and gap_extend_.
|
virtual |
Gets the gap opening penalty.
Definition at line 50 of file ScoringScheme.cc.
References gap_open_.
Referenced by core::sequence::ChemicalShiftScoringScheme::ChemicalShiftScoringScheme(), core::sequence::ChemicalShiftScoringScheme::clone(), core::sequence::CompassScoringScheme::clone(), core::sequence::DPScoringScheme::clone(), core::sequence::L1ScoringScheme::clone(), core::sequence::SimpleScoringScheme::clone(), core::sequence::CompositeScoringScheme::clone(), core::sequence::ProfSimScoringScheme::clone(), core::sequence::PairScoringScheme::clone(), core::sequence::MatrixScoringScheme::clone(), core::sequence::CompassScoringScheme::CompassScoringScheme(), core::sequence::CompositeScoringScheme::CompositeScoringScheme(), core::sequence::DPScoringScheme::DPScoringScheme(), gap_open(), core::sequence::L1ScoringScheme::L1ScoringScheme(), core::sequence::MatrixScoringScheme::MatrixScoringScheme(), core::sequence::PairScoringScheme::PairScoringScheme(), core::sequence::ProfSimScoringScheme::ProfSimScoringScheme(), and core::sequence::SimpleScoringScheme::SimpleScoringScheme().
| void core::sequence::ScoringScheme::gap_open | ( | Real const | gap_open) |
Sets the gap opening penalty.
Definition at line 60 of file ScoringScheme.cc.
References gap_open(), and gap_open_.
Definition at line 92 of file ScoringScheme.cc.
Referenced by core::sequence::ChemicalShiftScoringScheme::score(), core::sequence::L1ScoringScheme::score(), and core::sequence::DPScoringScheme::score().
|
virtual |
Reimplemented in core::sequence::MatrixScoringScheme.
Definition at line 45 of file ScoringScheme.cc.
References unimplemented_method_error().
|
virtual |
Initialize from a file.
Reimplemented in core::sequence::MatrixScoringScheme, core::sequence::PairScoringScheme, core::sequence::CompositeScoringScheme, and core::sequence::SimpleScoringScheme.
Definition at line 39 of file ScoringScheme.cc.
References unimplemented_method_error().
|
pure virtual |
| std::string core::sequence::ScoringScheme::type | ( | ) | const |
getters for type, which is a unique string name for this object.
Definition at line 70 of file ScoringScheme.cc.
References type_.
Referenced by core::sequence::ChemicalShiftScoringScheme::ChemicalShiftScoringScheme(), core::sequence::CompassScoringScheme::CompassScoringScheme(), core::sequence::CompositeScoringScheme::CompositeScoringScheme(), core::sequence::DPScoringScheme::DPScoringScheme(), core::sequence::MatrixScoringScheme::init_type(), core::sequence::L1ScoringScheme::L1ScoringScheme(), core::sequence::PairScoringScheme::PairScoringScheme(), core::sequence::ProfSimScoringScheme::ProfSimScoringScheme(), core::sequence::SimpleScoringScheme::SimpleScoringScheme(), and unimplemented_method_error().
| void core::sequence::ScoringScheme::type | ( | std::string | new_type) |
getters for type, which is a unique string name for this object.
Definition at line 75 of file ScoringScheme.cc.
References type_.
| void core::sequence::ScoringScheme::unimplemented_method_error | ( | std::string const & | method_name) | const |
Utility method for producing useful error messages and exiting from program. Declared const which is funny, because exiting the program certainly changes the state of this object! This might be replaced with exception handling if we ever start using those.
Definition at line 83 of file ScoringScheme.cc.
References type().
Referenced by read_data(), and read_from_file().
|
private |
Definition at line 96 of file ScoringScheme.hh.
Referenced by gap_extend().
|
private |
Definition at line 95 of file ScoringScheme.hh.
Referenced by gap_open().
|
private |
Definition at line 97 of file ScoringScheme.hh.
Referenced by type().
1.8.4