Changeset 2364
- Timestamp:
- 09/16/09 14:26:29 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.Interfaces/3.3/HeuristicLab.GP.Interfaces-3.3.csproj
r2235 r2364 80 80 </ItemGroup> 81 81 <ItemGroup> 82 <Compile Include="FunctionTreeIterator.cs" /> 82 83 <Compile Include="IFunctionTreeSerializer.cs"> 83 84 <SubType>Code</SubType> -
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.