- Timestamp:
- 09/16/09 14:26:29 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/BaseClasses/TreeEvaluatorBase.cs
r2328 r2364 64 64 codeArr = new Instr[functionTree.GetSize()]; 65 65 int i = 0; 66 foreach (IFunctionTree tree in IteratePrefix(functionTree)) {66 foreach (IFunctionTree tree in FunctionTreeIterator.IteratePrefix(functionTree)) { 67 67 codeArr[i++] = TranslateToInstr(tree); 68 68 } 69 }70 71 private IEnumerable<IFunctionTree> IteratePrefix(IFunctionTree functionTree) {72 List<IFunctionTree> prefixForm = new List<IFunctionTree>();73 prefixForm.Add(functionTree);74 foreach (IFunctionTree subTree in functionTree.SubTrees) {75 prefixForm.AddRange(IteratePrefix(subTree));76 }77 return prefixForm;78 69 } 79 70
Note: See TracChangeset
for help on using the changeset viewer.