Changeset 15344 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/PushProgram.cs
- Timestamp:
- 08/29/17 18:05:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/PushProgram.cs
r15334 r15344 51 51 depth = origin.depth; 52 52 treeIndex = origin.treeIndex; 53 expressions = new List<Expression>(origin.expressions); 53 54 var expressionsCopy = new List<Expression>(origin.expressions.Count); 55 for (var i = 0; i < origin.expressions.Count; i++) { 56 expressionsCopy.Add(cloner.Clone(origin.expressions[i])); 57 } 58 59 expressions = expressionsCopy; 54 60 } 55 61
Note: See TracChangeset
for help on using the changeset viewer.