A type of Sigma based on a type T.
All value of the type T are in the Sigma and the mapping is carried out by casting T to unsigned long.
//declare an Sigma based on the type char
typedef Type_alphabet<char> char_alphabet;
Defined in alphabet.h.
||The Type_alphabet's value type: the type of object that
is stored in the vector.
||(unsigned long)The size of the Sigma
||0 =>computed from T
T must define a cast operator to unsigned long, and unsigned long must be castable to the T type.
T must define << and >> operators in order to use the ASCII input/ouput algorithms (wich is already good if we assume T being a model of alphabet).
Public base classes
||The type of object, T, stored in the type_alphabet.
||Const iterator used to iterate through a type_alphabet.
||Returns an iterator pointing to the beginning of the type_alphabet.
||Returns an iterator pointing to the end of the type_alphabet.
|unsigned long size() const
||Returns the size of the type_alphabet.
|unsigned long map(a)
||Returns the mapped value of a
||Return the unmapped equivalent of l