bpp-seq3
3.0.0
|
States that do have a double value. More...
#include <Bpp/Seq/Alphabet/AlphabetNumericState.h>
Public Member Functions | |
AlphabetNumericState (int num, double value, const std::string &letter, const std::string &name) | |
virtual | ~AlphabetNumericState () |
double | getValue () const |
Get the state value. More... | |
void | setValue (double value) |
Set the state value. More... | |
int | getNum () const |
Get the state's number. More... | |
void | setNum (int num) |
Set the state's number. More... | |
const std::string & | getLetter () const |
Get the letter(s) corresponding to the state. More... | |
void | setLetter (const std::string &letter) |
Set the letter(s) of the state. More... | |
const std::string & | getName () const |
Get the name of the state. More... | |
void | setName (const std::string &name) |
Set the name of the state. More... | |
bool | operator== (AlphabetState &l2) |
operator == More... | |
The Clonable interface. | |
AlphabetNumericState * | clone () const |
Private Attributes | |
double | value_ |
int | num_ |
std::string | letter_ |
std::string | name_ |
States that do have a double value.
Definition at line 26 of file AlphabetNumericState.h.
|
inline |
Definition at line 32 of file AlphabetNumericState.h.
Referenced by clone().
|
inlinevirtual |
Definition at line 35 of file AlphabetNumericState.h.
|
inlinevirtual |
Implements bpp::Clonable.
Definition at line 42 of file AlphabetNumericState.h.
References AlphabetNumericState().
|
inlineinherited |
Get the letter(s) corresponding to the state.
The letter is a string because it may more than one char (for instance: codon).
Definition at line 63 of file AlphabetState.h.
References bpp::AlphabetState::letter_.
Referenced by bpp::CaseMaskedAlphabet::CaseMaskedAlphabet(), bpp::LexicalAlphabet::getAlphabetType(), bpp::AbstractAlphabet::getCharCodeAt(), bpp::RNY::intToChar(), bpp::LetterAlphabet::registerState(), bpp::LetterAlphabet::setState(), and bpp::AbstractAlphabet::updateMaps_().
|
inlineinherited |
Get the name of the state.
Definition at line 76 of file AlphabetState.h.
References bpp::AlphabetState::name_.
Referenced by bpp::CaseMaskedAlphabet::CaseMaskedAlphabet(), and bpp::WordAlphabet::getName().
|
inlineinherited |
Get the state's number.
Definition at line 47 of file AlphabetState.h.
References bpp::AlphabetState::num_.
Referenced by bpp::CaseMaskedAlphabet::CaseMaskedAlphabet(), bpp::AlphabetTools::checkAlphabetCodingSize(), bpp::AbstractAlphabet::getIntCodeAt(), bpp::NucleicAlphabet::getOverlap(), bpp::AlphabetState::operator==(), bpp::LetterAlphabet::registerState(), bpp::LetterAlphabet::setState(), bpp::NucleicAlphabet::subtract(), and bpp::AbstractAlphabet::updateMaps_().
|
inline |
Get the state value.
Definition at line 50 of file AlphabetNumericState.h.
References value_.
Referenced by bpp::NumericAlphabet::remap().
|
inlineinherited |
operator ==
Comparison is done on state num
Definition at line 89 of file AlphabetState.h.
References bpp::AlphabetState::getNum().
|
inlineinherited |
Set the letter(s) of the state.
letter | The state's letter. |
Definition at line 69 of file AlphabetState.h.
References bpp::AlphabetState::letter_.
|
inlineinherited |
Set the name of the state.
name | The state's name |
Definition at line 82 of file AlphabetState.h.
References bpp::AlphabetState::name_.
|
inlineinherited |
Set the state's number.
num | The state's number. |
Definition at line 53 of file AlphabetState.h.
References bpp::AlphabetState::num_.
|
inline |
Set the state value.
value | The given state value. |
Definition at line 56 of file AlphabetNumericState.h.
References value_.
|
privateinherited |
Definition at line 25 of file AlphabetState.h.
Referenced by bpp::AlphabetState::getLetter(), and bpp::AlphabetState::setLetter().
|
privateinherited |
Definition at line 26 of file AlphabetState.h.
Referenced by bpp::AlphabetState::getName(), and bpp::AlphabetState::setName().
|
privateinherited |
Definition at line 24 of file AlphabetState.h.
Referenced by bpp::AlphabetState::getNum(), and bpp::AlphabetState::setNum().
|
private |
Definition at line 29 of file AlphabetNumericState.h.
Referenced by getValue(), and setValue().