bpp-seq
2.2.0
|
Create a AlphabetIndex1 object from an AAIndex2 entry. More...
#include <Bpp/Seq/AlphabetIndex/AAIndex1Entry.h>
Public Member Functions | |
AAIndex1Entry (std::istream &input) throw (IOException) | |
Create a new AAIndex1Entry from an input stream. More... | |
AAIndex1Entry (const AAIndex1Entry &index) | |
AAIndex1Entry & | operator= (const AAIndex1Entry &index) |
virtual | ~AAIndex1Entry () |
AAIndex1Entry * | clone () const |
double | getIndex (int state) const throw (BadIntException) |
Get the index associated to a state. More... | |
double | getIndex (const std::string &state) const throw (BadCharException) |
Get the index associated to a state. More... | |
std::vector< double > * | getIndexVector () const |
const Alphabet * | getAlphabet () const |
Get the alphabet associated to this index. More... | |
Private Attributes | |
std::vector< double > | property_ |
const ProteicAlphabet * | alpha_ |
Create a AlphabetIndex1 object from an AAIndex2 entry.
Definition at line 51 of file AAIndex1Entry.h.
AAIndex1Entry::AAIndex1Entry | ( | std::istream & | input | ) | |
throw | ( | IOException | |||
) |
Create a new AAIndex1Entry from an input stream.
input | The input stream to use. |
IOException | if the stream content does not follow the AAIndex1 database entry format. |
Definition at line 49 of file AAIndex1Entry.cpp.
Referenced by clone().
|
inline |
Definition at line 67 of file AAIndex1Entry.h.
|
inlinevirtual |
Definition at line 79 of file AAIndex1Entry.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 81 of file AAIndex1Entry.h.
References AAIndex1Entry().
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex1.
Definition at line 97 of file AAIndex1Entry.h.
References alpha_.
|
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 AAIndex1Entry.h.
|
inlinevirtual |
Get the index associated to a state.
state | The state to consider, as a string value. |
Implements bpp::AlphabetIndex1.
Definition at line 90 of file AAIndex1Entry.h.
References alpha_, bpp::LetterAlphabet::charToInt(), and property_.
|
inlinevirtual |
Implements bpp::AlphabetIndex1.
Definition at line 95 of file AAIndex1Entry.h.
References property_.
|
inline |
Definition at line 72 of file AAIndex1Entry.h.
|
private |
Definition at line 56 of file AAIndex1Entry.h.
Referenced by getAlphabet(), getIndex(), and operator=().
|
private |
Definition at line 55 of file AAIndex1Entry.h.
Referenced by getIndex(), getIndexVector(), and operator=().