Changeset 14744 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Example.cs
- Timestamp:
- 03/10/17 21:42:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Example.cs
r14733 r14744 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using System; 2 3 3 4 using HeuristicLab.Common; … … 23 24 24 25 public void CopyTo(Example example) { 25 example.InputArgs = this.InputArgs;26 example.OutputArgs = this.OutputArgs;26 Array.Copy(InputArgs, example.InputArgs, InputArgs.Length); 27 Array.Copy(OutputArgs, example.OutputArgs, OutputArgs.Length); 27 28 28 example.InputBoolean = this.InputBoolean;29 example.InputInt = this.InputInt;30 example.InputFloat = this.InputFloat;29 Array.Copy(InputBoolean, example.InputBoolean, InputBoolean.Length); 30 Array.Copy(InputInt, example.InputInt, InputInt.Length); 31 Array.Copy(InputFloat, example.InputFloat, InputFloat.Length); 31 32 32 example.OutputBoolean = this.OutputBoolean;33 example.OutputInt = this.OutputInt;34 example.OutputFloat = this.OutputFloat;33 Array.Copy(OutputBoolean, example.OutputBoolean, OutputBoolean.Length); 34 Array.Copy(OutputInt, example.OutputInt, OutputInt.Length); 35 Array.Copy(OutputFloat, example.OutputFloat, OutputFloat.Length); 35 36 } 36 37
Note: See TracChangeset
for help on using the changeset viewer.