bpp-seq3
3.0.0
|
Alphabet index given by user. More...
#include <Bpp/Seq/AlphabetIndex/UserAlphabetIndex1.h>
Public Member Functions | |
UserAlphabetIndex1 (std::shared_ptr< const Alphabet > alph) | |
UserAlphabetIndex1 (const UserAlphabetIndex1 &uAlph) | |
UserAlphabetIndex1 & | operator= (const UserAlphabetIndex1 &uAlph) |
virtual | ~UserAlphabetIndex1 () |
UserAlphabetIndex1 * | clone () const override |
double | getIndex (int state) const |
Get the index associated to a state. More... | |
void | setIndex (int state, double val) |
double | getIndex (const std::string &state) const |
Get the index associated to a state. More... | |
void | setIndex (const std::string &state, double val) |
const std::vector< double > & | indexVector () const |
std::shared_ptr< const Alphabet > | getAlphabet () const |
Get the alphabet associated to this index. More... | |
const Alphabet & | alphabet () const |
Get the alphabet associated to this index. More... | |
Private Attributes | |
std::shared_ptr< const Alphabet > | alph_ |
std::vector< double > | index_ |
Alphabet index given by user.
Definition at line 19 of file UserAlphabetIndex1.h.
|
inline |
Definition at line 27 of file UserAlphabetIndex1.h.
Referenced by clone().
|
inline |
Definition at line 32 of file UserAlphabetIndex1.h.
|
inlinevirtual |
Definition at line 44 of file UserAlphabetIndex1.h.
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex1.
Definition at line 73 of file UserAlphabetIndex1.h.
References alph_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 46 of file UserAlphabetIndex1.h.
References UserAlphabetIndex1().
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex1.
Definition at line 71 of file UserAlphabetIndex1.h.
References alph_.
|
inlinevirtual |
Get the index associated to a state.
state | The state to consider, as a string value. |
Implements bpp::AlphabetIndex1.
Definition at line 59 of file UserAlphabetIndex1.h.
|
inlinevirtual |
Get the index associated to a state.
state | The state to consider, as a int value. |
Implements bpp::AlphabetIndex1.
Definition at line 49 of file UserAlphabetIndex1.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 69 of file UserAlphabetIndex1.h.
References index_.
|
inline |
Definition at line 37 of file UserAlphabetIndex1.h.
|
inline |
Definition at line 64 of file UserAlphabetIndex1.h.
|
inline |
Definition at line 54 of file UserAlphabetIndex1.h.
|
private |
Definition at line 23 of file UserAlphabetIndex1.h.
Referenced by alphabet(), getAlphabet(), getIndex(), operator=(), and setIndex().
|
private |
Definition at line 24 of file UserAlphabetIndex1.h.
Referenced by getIndex(), indexVector(), operator=(), and setIndex().