bpp-seq3
3.0.0
|
AlphabetIndex1 for codon based on ProteicAlphabetIndex1. More...
#include <Bpp/Seq/AlphabetIndex/CodonFromProteicAlphabetIndex1.h>
Public Member Functions | |
CodonFromProteicAlphabetIndex1 (std::shared_ptr< const GeneticCode > gencode, std::shared_ptr< const AlphabetIndex1 > protalphindex) | |
CodonFromProteicAlphabetIndex1 (const CodonFromProteicAlphabetIndex1 &cfp) | |
CodonFromProteicAlphabetIndex1 & | operator= (const CodonFromProteicAlphabetIndex1 &cfp) |
virtual | ~CodonFromProteicAlphabetIndex1 () |
CodonFromProteicAlphabetIndex1 * | clone () const override |
double | getIndex (int state) const override |
Get the index associated to a state. More... | |
double | getIndex (const std::string &state) const override |
Get the index associated to a state. More... | |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
Get the alphabet associated to this index. More... | |
const Alphabet & | alphabet () const override |
Get the alphabet associated to this index. More... | |
const std::vector< double > & | indexVector () const override |
Private Member Functions | |
void | fillIndex_ (std::shared_ptr< const AlphabetIndex1 > protAlphIndex_) |
Private Attributes | |
std::shared_ptr< const CodonAlphabet > | alpha_ |
std::shared_ptr< const GeneticCode > | gencode_ |
std::vector< double > | vIndex_ |
AlphabetIndex1 for codon based on ProteicAlphabetIndex1.
Definition at line 18 of file CodonFromProteicAlphabetIndex1.h.
|
inline |
Definition at line 27 of file CodonFromProteicAlphabetIndex1.h.
References fillIndex_(), and bpp::AlphabetTools::isProteicAlphabet().
Referenced by clone().
|
inline |
Definition at line 40 of file CodonFromProteicAlphabetIndex1.h.
|
inlinevirtual |
Definition at line 55 of file CodonFromProteicAlphabetIndex1.h.
|
inlineoverridevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex1.
Definition at line 78 of file CodonFromProteicAlphabetIndex1.h.
References alpha_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 57 of file CodonFromProteicAlphabetIndex1.h.
References CodonFromProteicAlphabetIndex1().
|
inlineprivate |
Definition at line 89 of file CodonFromProteicAlphabetIndex1.h.
References gencode_, getAlphabet(), and vIndex_.
Referenced by CodonFromProteicAlphabetIndex1().
|
inlineoverridevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex1.
Definition at line 73 of file CodonFromProteicAlphabetIndex1.h.
References alpha_.
Referenced by fillIndex_(), and getIndex().
|
inlineoverridevirtual |
Get the index associated to a state.
state | The state to consider, as a string value. |
Implements bpp::AlphabetIndex1.
Definition at line 68 of file CodonFromProteicAlphabetIndex1.h.
References getAlphabet(), and vIndex_.
|
inlineoverridevirtual |
Get the index associated to a state.
state | The state to consider, as a int value. |
Implements bpp::AlphabetIndex1.
Definition at line 63 of file CodonFromProteicAlphabetIndex1.h.
References getAlphabet(), and vIndex_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 83 of file CodonFromProteicAlphabetIndex1.h.
References vIndex_.
|
inline |
Definition at line 46 of file CodonFromProteicAlphabetIndex1.h.
|
private |
Definition at line 22 of file CodonFromProteicAlphabetIndex1.h.
Referenced by alphabet(), getAlphabet(), and operator=().
|
private |
Definition at line 23 of file CodonFromProteicAlphabetIndex1.h.
Referenced by fillIndex_(), and operator=().
|
private |
Definition at line 24 of file CodonFromProteicAlphabetIndex1.h.
Referenced by fillIndex_(), getIndex(), indexVector(), and operator=().