Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/17 22:03:01 (7 years ago)
Author:
pkimmesw
Message:

#2665 Removed "this" qualifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/LoopExpression.cs

    r14834 r14908  
    4646      var hash = 19;
    4747
    48       if (this.Body != null)
    49         hash = hash * 31 + this.Body.GetHashCode();
     48      if (Body != null)
     49        hash = hash * 31 + Body.GetHashCode();
    5050
    51       hash = hash * 31 + this.CurrentIndex.GetHashCode();
    52       hash = hash * 31 + this.DestinationIndex.GetHashCode();
    53       hash = hash * 31 + this.Incrementor.GetHashCode();
     51      hash = hash * 31 + CurrentIndex.GetHashCode();
     52      hash = hash * 31 + DestinationIndex.GetHashCode();
     53      hash = hash * 31 + Incrementor.GetHashCode();
    5454
    5555      return hash;
     
    6464    protected bool Eval(IInternalPushInterpreter interpreter, IPushStack<Expression> sourceStack, bool pushCurrentIndex = false) {
    6565      // if not initialized
    66       if (this.State.Body == null) {
    67         if (this.HasInsufficientArguments(interpreter, sourceStack)) return false;
     66      if (State.Body == null) {
     67        if (HasInsufficientArguments(interpreter, sourceStack)) return false;
    6868
    69         var state = this.InitState(interpreter, sourceStack);
     69        var state = InitState(interpreter, sourceStack);
    7070        var initLoopExpression = Clone(state, interpreter);
    7171
     
    7575
    7676      // if loop end reached
    77       if (this.State.DestinationIndex == this.State.CurrentIndex) {
    78         this.PushLastIteration(interpreter);
     77      if (State.DestinationIndex == State.CurrentIndex) {
     78        PushLastIteration(interpreter);
    7979        return true;
    8080      }
    8181
    82       this.PushIteration(interpreter);
     82      PushIteration(interpreter);
    8383
    8484      return true;
     
    100100
    101101    protected virtual void PushIteration(IInternalPushInterpreter interpreter) {
    102       interpreter.IntegerStack.Push(this.State.CurrentIndex);
     102      interpreter.IntegerStack.Push(State.CurrentIndex);
    103103
    104104      var newState = LoopState.Create(
Note: See TracChangeset for help on using the changeset viewer.