line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::Sudoku::OO::Set::Row; |
2
|
2
|
|
|
2
|
|
1375
|
use Games::Sudoku::OO::Set; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
341
|
|
3
|
|
|
|
|
|
|
@ISA = ("Games::Sudoku::OO::Set"); |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
97
|
|
|
97
|
0
|
143
|
my $proto = shift; |
8
|
97
|
|
33
|
|
|
369
|
my $class = ref($proto) || $proto; |
9
|
97
|
|
|
|
|
420
|
my $self = $class->SUPER::new(@_); |
10
|
97
|
|
|
|
|
245
|
bless ($self, $class); # reconsecrate |
11
|
97
|
|
|
|
|
276
|
return $self; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub setBackReference { |
15
|
985
|
|
|
985
|
0
|
1298
|
my $self = shift; |
16
|
985
|
|
|
|
|
1121
|
my $cell = shift; |
17
|
985
|
|
|
|
|
2433
|
$cell->setRow($self); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub toStr { |
21
|
70
|
|
|
70
|
0
|
83
|
my $self = shift; |
22
|
70
|
|
|
|
|
94
|
my $string = ""; |
23
|
70
|
|
|
|
|
85
|
foreach my $cell (@{$self->{CELLS}}){ |
|
70
|
|
|
|
|
179
|
|
24
|
742
|
|
|
|
|
2044
|
$string .= $cell->toStr(); |
25
|
|
|
|
|
|
|
} |
26
|
70
|
|
|
|
|
2577
|
return $string; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
1; |