Changeset 15273 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Attributes/PushExpressionAttriubte.cs
- Timestamp:
- 07/19/17 12:55:58 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Attributes/PushExpressionAttriubte.cs
r15032 r15273 10 10 public readonly string Name; 11 11 public readonly string Description; 12 public readonly int? InExpressionNr; 12 13 13 14 /// <summary> … … 32 33 StackTypes additionalStackDependencies = default(StackTypes), 33 34 uint execIn = 0, 34 bool isHidden = false) { 35 bool isHidden = false, 36 int inExpressionNr = -1) { 35 37 36 38 StackType = stackType; … … 40 42 ExecIn = execIn; 41 43 IsHidden = isHidden; 44 InExpressionNr = inExpressionNr > 0 ? inExpressionNr : default(int?); 42 45 ManipulatesExec = stackType == StackTypes.Exec || AdditionalStackDependencies.HasFlag(StackTypes.Exec); 43 46 } 47 48 public bool IsInExpression { get { return this.InExpressionNr.HasValue; } } 44 49 } 45 50 }
Note: See TracChangeset
for help on using the changeset viewer.