Mercurial > pub > ImplabNet
comparison Implab/Automaton/MapAlphabet.cs @ 181:b2b6a6640aa3 ref20160224
minor fixes and debug
| author | cin |
|---|---|
| date | Thu, 24 Mar 2016 03:54:46 +0300 |
| parents | d5c5db0335ee |
| children | 302ca905c19e |
comparison
equal
deleted
inserted
replaced
| 180:c32688129f14 | 181:b2b6a6640aa3 |
|---|---|
| 67 return m_supportUnclassified || m_map.ContainsKey(symbol); | 67 return m_supportUnclassified || m_map.ContainsKey(symbol); |
| 68 } | 68 } |
| 69 | 69 |
| 70 | 70 |
| 71 public IEnumerable<T> GetSymbols(int cls) { | 71 public IEnumerable<T> GetSymbols(int cls) { |
| 72 Safe.ArgumentAssert(cls > 0, "cls"); | 72 Safe.ArgumentAssert(!m_supportUnclassified || cls > 0, "cls"); |
| 73 return m_map.Where(p => p.Value == cls).Select(p => p.Key); | 73 return m_map.Where(p => p.Value == cls).Select(p => p.Key); |
| 74 } | 74 } |
| 75 #endregion | 75 #endregion |
| 76 | 76 |
| 77 public IEnumerable<KeyValuePair<T,int>> Mappings { | 77 public IEnumerable<KeyValuePair<T,int>> Mappings { |
