LocARNA-2.0.0
|
Specifies an alphabet of static size. More...
#include <alphabet.hh>
Public Types | |
using | value_type = T |
type of an alphabet element | |
using | size_type = typename std::array< T, N >::size_type |
inherited size_type | |
Public Member Functions | |
Alphabet () | |
construct empty | |
Alphabet (const std::array< T, N > &a) | |
construct from array of alphabet elements | |
Alphabet (const std::vector< T > &v) | |
construct from vector | |
Alphabet (const std::string &s) | |
construct from string (only T=char) | |
Alphabet< T, N > & | operator= (const std::array< T, N > &a) |
size_type | idx (const value_type &x) const |
index of alphabet element More... | |
bool | in (const value_type &x) const |
test alphabet element membership More... | |
Specifies an alphabet of static size.
maintain an alphabet and offer efficient transformation between elements of alphabet and their indices
size_type LocARNA::Alphabet< T, N >::idx | ( | const value_type & | x | ) | const |
index of alphabet element
x | element of the alphabet |
bool LocARNA::Alphabet< T, N >::in | ( | const value_type & | x | ) | const |
test alphabet element membership
x | element of the alphabet |