|
Rosetta 3.5
|
#include <SimpleScoringScheme.hh>


Public Member Functions | |
| SimpleScoringScheme (Real match_score=4, Real mismatch_score=1, Real gap_open_in=-4, Real gap_extend_in=-1) | |
| ctor More... | |
| ScoringSchemeOP | clone () const |
| clone method. More... | |
| virtual | ~SimpleScoringScheme () |
| dtor More... | |
| virtual void | read_from_file (utility::file::FileName const &fn) |
| Initialize from a file. More... | |
| Real | match_score () const |
| Real | mismatch_score () const |
| virtual Real | score (SequenceOP seq1, SequenceOP seq2, core::Size pos1, core::Size pos2) |
Public Member Functions inherited from core::sequence::ScoringScheme | |
| ScoringScheme () | |
| ctor More... | |
| virtual | ~ScoringScheme () |
| dtor 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 | match_score_ |
| Real | mismatch_score_ |
Definition at line 32 of file SimpleScoringScheme.hh.
|
inline |
ctor
Definition at line 37 of file SimpleScoringScheme.hh.
References core::sequence::ScoringScheme::gap_extend(), core::sequence::ScoringScheme::gap_open(), and core::sequence::ScoringScheme::type().
Referenced by clone().
|
inlinevirtual |
dtor
Definition at line 61 of file SimpleScoringScheme.hh.
|
inlinevirtual |
clone method.
Implements core::sequence::ScoringScheme.
Definition at line 51 of file SimpleScoringScheme.hh.
References core::sequence::ScoringScheme::gap_extend(), core::sequence::ScoringScheme::gap_open(), match_score(), mismatch_score(), and SimpleScoringScheme().
| Real core::sequence::SimpleScoringScheme::match_score | ( | ) | const |
Definition at line 39 of file SimpleScoringScheme.cc.
References match_score_.
Referenced by clone().
| Real core::sequence::SimpleScoringScheme::mismatch_score | ( | ) | const |
Definition at line 43 of file SimpleScoringScheme.cc.
References mismatch_score_.
Referenced by clone().
|
virtual |
Initialize from a file.
Reimplemented from core::sequence::ScoringScheme.
Definition at line 35 of file SimpleScoringScheme.cc.
|
virtual |
Definition at line 47 of file SimpleScoringScheme.cc.
References match_score_, and mismatch_score_.
|
private |
Definition at line 72 of file SimpleScoringScheme.hh.
Referenced by match_score(), and score().
|
private |
Definition at line 73 of file SimpleScoringScheme.hh.
Referenced by mismatch_score(), and score().
1.8.4