Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/17 12:55:58 (7 years ago)
Author:
pkimmesw
Message:

#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Attributes/PushExpressionAttriubte.cs

    r15032 r15273  
    1010    public readonly string Name;
    1111    public readonly string Description;
     12    public readonly int? InExpressionNr;
    1213
    1314    /// <summary>
     
    3233      StackTypes additionalStackDependencies = default(StackTypes),
    3334      uint execIn = 0,
    34       bool isHidden = false) {
     35      bool isHidden = false,
     36      int inExpressionNr = -1) {
    3537
    3638      StackType = stackType;
     
    4042      ExecIn = execIn;
    4143      IsHidden = isHidden;
     44      InExpressionNr = inExpressionNr > 0 ? inExpressionNr : default(int?);
    4245      ManipulatesExec = stackType == StackTypes.Exec || AdditionalStackDependencies.HasFlag(StackTypes.Exec);
    4346    }
     47
     48    public bool IsInExpression { get { return this.InExpressionNr.HasValue; } }
    4449  }
    4550}
Note: See TracChangeset for help on using the changeset viewer.