Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/17 12:48:46 (8 years ago)
Author:
pkimmesw
Message:

#2665 Added Dictionary of stacks to interperter, clear all stacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Views/PushDebuggerView.cs

    r14897 r14914  
    228228      };
    229229
     230      // align numbers right
    230231      var stackEntryType = type.GetStackEntryType();
    231232      if (stackEntryType == typeof(double) ||
     
    270271
    271272      foreach (var pair in debugControlDict) {
    272         var stack = interpreter.GetStackEntriesByType<object>(pair.Key);
     273        var stack = interpreter.Stacks[pair.Key];
    273274        var name = Enum.GetName(typeof(StackTypes), pair.Key);
    274275
    275         pair.Value.Items.AddRange(stack.Reverse().ToArray());
     276        pair.Value.Items.AddRange(stack.AsObjects().Reverse().ToArray());
    276277        ((GroupBox)pair.Value.Parent).Text = string.Format(GroupBoxTextStringFormat, name, pair.Value.Items.Count);
    277278      }
Note: See TracChangeset for help on using the changeset viewer.