Changeset 15017 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/ExpressionTable.cs
- Timestamp:
- 06/01/17 09:28:34 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/ExpressionTable.cs
r14952 r15017 33 33 ExpressionNames = StatelessExpressionTable.Keys 34 34 .Concat(StatefulExpressionFactory.Keys) 35 .Where(t => typeToNameTable.ContainsKey(t)) 35 36 .Select(type => typeToNameTable[type]) 36 37 .ToArray(); … … 55 56 typeToAttributeTable.Add(type, attribute); 56 57 dictionary.Add(type, expression); 58 59 // do not index hidden expressions like push expression in tables 60 if (attribute.IsHidden) continue; 61 57 62 indexToNameTable.Add(indexToNameTable.Keys.Count, attribute.ExpressionName); 58 63 typeToNameTable.Add(type, attribute.ExpressionName); … … 89 94 typeToAttributeTable.Add(type, attribute); 90 95 dictionary.Add(type, creator); 96 97 // do not index hidden expressions like push expression in tables 98 if (attribute.IsHidden) continue; 99 91 100 indexToNameTable.Add(indexToNameTable.Keys.Count, attribute.ExpressionName); 92 101 typeToNameTable.Add(type, attribute.ExpressionName);
Note: See TracChangeset
for help on using the changeset viewer.