bpp-seq
2.2.0
|
This is the base class to describe states in a ProteicAlphabet. More...
#include <Bpp/Seq/Alphabet/ProteicAlphabetState.h>
Public Member Functions | |
ProteicAlphabetState (int num, const std::string &letter, const std::string &abbr, const std::string &name) | |
virtual | ~ProteicAlphabetState () |
ProteicAlphabetState * | clone () const |
const std::string & | getAbbreviation () const |
Get the state's abbreviation. More... | |
void | setAbbreviation (const std::string &abbr) |
Set the state's abbreviation. 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... | |
Private Attributes | |
std::string | abbr_ |
This is the base class to describe states in a ProteicAlphabet.
Definition at line 52 of file ProteicAlphabetState.h.
|
inline |
Definition at line 57 of file ProteicAlphabetState.h.
Referenced by clone().
|
inlinevirtual |
Definition at line 60 of file ProteicAlphabetState.h.
|
inline |
Definition at line 63 of file ProteicAlphabetState.h.
References ProteicAlphabetState().
|
inline |
Get the state's abbreviation.
Definition at line 71 of file ProteicAlphabetState.h.
References abbr_.
|
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 99 of file AlphabetState.h.
References bpp::AlphabetState::letter_.
Referenced by bpp::CaseMaskedAlphabet::CaseMaskedAlphabet(), bpp::AbstractAlphabet::getCharCodeAt(), and bpp::AbstractAlphabet::updateMaps_().
|
inlineinherited |
Get the name of the state.
Definition at line 112 of file AlphabetState.h.
References bpp::AlphabetState::name_.
Referenced by bpp::CaseMaskedAlphabet::CaseMaskedAlphabet().
|
inlineinherited |
Get the state's number.
Definition at line 83 of file AlphabetState.h.
References bpp::AlphabetState::num_.
Referenced by bpp::CaseMaskedAlphabet::CaseMaskedAlphabet(), bpp::AbstractAlphabet::getIntCodeAt(), bpp::NucleicAlphabet::getOverlap(), bpp::AlphabetState::operator==(), bpp::NucleicAlphabet::subtract(), and bpp::AbstractAlphabet::updateMaps_().
|
inlineinherited |
operator ==
Comparison is done on state num
Definition at line 125 of file AlphabetState.h.
References bpp::AlphabetState::getNum().
|
inline |
Set the state's abbreviation.
abbr | The state's abbreviation. |
Definition at line 77 of file ProteicAlphabetState.h.
References abbr_.
|
inlineinherited |
Set the letter(s) of the state.
letter | The state's letter. |
Definition at line 105 of file AlphabetState.h.
References bpp::AlphabetState::letter_.
|
inlineinherited |
Set the name of the state.
name | The state's name |
Definition at line 118 of file AlphabetState.h.
References bpp::AlphabetState::name_.
|
inlineinherited |
Set the state's number.
num | The state's number. |
Definition at line 89 of file AlphabetState.h.
References bpp::AlphabetState::num_.
|
private |
Definition at line 54 of file ProteicAlphabetState.h.
Referenced by getAbbreviation(), and setAbbreviation().