#include <Alphabet.h>
Inheritance diagram for InfiniteAlphabet:
Public Member Functions | |
InfiniteAlphabet (string pref=string("x")) | |
Constructor. | |
int | getNum (const string &letter) const |
Implements the conversion from a letter name into its corresponding index. | |
string | getLetter (int index) const |
Returns the name of the letter with a given index. | |
Static Public Attributes | |
static InfiniteAlphabet | defaultAlphabet |
Static instance of the default alphabet x_1, x_2, ... | |
Private Attributes | |
string | thePrefix |
Friends | |
ostream & | operator<< (ostream &out, const InfiniteAlphabet &a) |
Output the alphabet into a stream. |
Definition at line 153 of file Alphabet.h.
|
Constructor.
Definition at line 162 of file Alphabet.h. |
|
Returns the name of the letter with a given index.
Implements Alphabet. |
|
Implements the conversion from a letter name into its corresponding index.
Implements Alphabet. |
|
Output the alphabet into a stream.
Definition at line 183 of file Alphabet.h. |
|
Static instance of the default alphabet x_1, x_2, ...
Definition at line 180 of file Alphabet.h. Referenced by Word::printOn(). |
|
Definition at line 193 of file Alphabet.h. |