comparison Implab/Automaton/IndexedAlphabetBase.cs @ 167:96681e9d0cea ref20160224

sync
author cin
date Wed, 02 Mar 2016 00:20:48 +0300
parents ec35731ae299
children 0f70905b4652
comparison
equal deleted inserted replaced
166:b84cdbe82e7f 167:96681e9d0cea
6 6
7 namespace Implab.Automaton { 7 namespace Implab.Automaton {
8 /// <summary> 8 /// <summary>
9 /// Indexed alphabet is the finite set of symbols where each symbol has a zero-based unique index. 9 /// Indexed alphabet is the finite set of symbols where each symbol has a zero-based unique index.
10 /// </summary> 10 /// </summary>
11 /// <remarks>
12 /// Indexed alphabets are usefull in bulting efficient translations from source alphabet
13 /// to the input alphabet of the automaton. It's assumed that the index to the symbol match
14 /// is well known and documented.
15 /// </remarks>
11 public abstract class IndexedAlphabetBase<T> : IAlphabetBuilder<T> { 16 public abstract class IndexedAlphabetBase<T> : IAlphabetBuilder<T> {
12 int m_nextId = 1; 17 int m_nextId = 1;
13 readonly int[] m_map; 18 readonly int[] m_map;
14 19
15 public int Count { 20 public int Count {