bpp-seq
2.2.0
|
Alphabet index given by user. More...
#include <Bpp/Seq/AlphabetIndex/UserAlphabetIndex1.h>
Public Member Functions | |
UserAlphabetIndex1 (const Alphabet *alph) | |
UserAlphabetIndex1 (const UserAlphabetIndex1 &uAlph) | |
UserAlphabetIndex1 & | operator= (const UserAlphabetIndex1 &uAlph) |
virtual | ~UserAlphabetIndex1 () |
UserAlphabetIndex1 * | clone () const |
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) |
std::vector< double > * | getIndexVector () const |
const Alphabet * | getAlphabet () const |
Get the alphabet associated to this index. More... | |
Private Attributes | |
const Alphabet * | alph_ |
std::vector< double > | index_ |
Alphabet index given by user.
Definition at line 54 of file UserAlphabetIndex1.h.
|
inline |
Definition at line 62 of file UserAlphabetIndex1.h.
Referenced by clone().
|
inline |
Definition at line 67 of file UserAlphabetIndex1.h.
|
inlinevirtual |
Definition at line 79 of file UserAlphabetIndex1.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 81 of file UserAlphabetIndex1.h.
References UserAlphabetIndex1().
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex1.
Definition at line 106 of file UserAlphabetIndex1.h.
References alph_.
|
inlinevirtual |
Get the index associated to a state.
state | The state to consider, as a int value. |
Implements bpp::AlphabetIndex1.
Definition at line 84 of file UserAlphabetIndex1.h.
References alph_, bpp::Alphabet::getStateIndex(), and index_.
|
inlinevirtual |
Get the index associated to a state.
state | The state to consider, as a string value. |
Implements bpp::AlphabetIndex1.
Definition at line 94 of file UserAlphabetIndex1.h.
References alph_, bpp::Alphabet::getStateIndex(), and index_.
|
inlinevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 104 of file UserAlphabetIndex1.h.
References index_.
|
inline |
Definition at line 72 of file UserAlphabetIndex1.h.
|
inline |
Definition at line 89 of file UserAlphabetIndex1.h.
References alph_, bpp::Alphabet::getStateIndex(), and index_.
|
inline |
Definition at line 99 of file UserAlphabetIndex1.h.
References alph_, bpp::Alphabet::getStateIndex(), and index_.
|
private |
Definition at line 58 of file UserAlphabetIndex1.h.
Referenced by getAlphabet(), getIndex(), operator=(), and setIndex().
|
private |
Definition at line 59 of file UserAlphabetIndex1.h.
Referenced by getIndex(), getIndexVector(), operator=(), and setIndex().