Commits

Shlomi Fish  committed 02c5548

Moved the trace_wrapper() method to the $state.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@694 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

  • Participants
  • Parent commits b748d98

Comments (0)

Files changed (1)

File fc-solve/presets/soft-threads/meta-moves/auto-gen/Shlomif/FCS/CalcMetaScan.pm

     $state->main()->add('total_boards_solved', $state->num_solved());
 }
 
+sub trace_wrapper
+{
+    my $state = shift;
+    $state->main()->trace(
+        {
+            'iters_quota' => $state->quota(),
+            'selected_scan_idx' => $state->scan_idx(),
+            'total_boards_solved' => $state->main()->total_boards_solved(),
+        }
+    );
+}
+
 package Shlomif::FCS::CalcMetaScan;
 
 use strict;
 }
 
 
-sub trace_wrapper
-{
-    my ($self, $state) = @_;
-    $self->trace(
-        {
-            'iters_quota' => $state->quota(),
-            'selected_scan_idx' => $state->scan_idx(),
-            'total_boards_solved' => $self->total_boards_solved(),
-        }
-    );
-}
 
 
 sub update_using_iter_state
     $state->add_chosen();
     $state->mark_as_used();
     $state->update_total_boards_solved();
-    $self->trace_wrapper($state);
+    $state->trace_wrapper();
 }
 
 sub inspect_quota