line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::Sudoku::OO::Set::Column; |
2
|
2
|
|
|
2
|
|
13
|
use Games::Sudoku::OO::Set; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
374
|
|
3
|
|
|
|
|
|
|
@ISA = ("Games::Sudoku::OO::Set"); |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub new { |
6
|
97
|
|
|
97
|
0
|
132
|
my $proto = shift; |
7
|
97
|
|
33
|
|
|
444
|
my $class = ref($proto) || $proto; |
8
|
97
|
|
|
|
|
347
|
my $self = $class->SUPER::new(@_); |
9
|
97
|
|
|
|
|
244
|
bless ($self, $class); # reconsecrate |
10
|
97
|
|
|
|
|
561
|
return $self; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub setBackReference { |
16
|
985
|
|
|
985
|
0
|
1382
|
my $self = shift; |
17
|
985
|
|
|
|
|
3537
|
my $cell = shift; |
18
|
985
|
|
|
|
|
2658
|
$cell->setColumn($self); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub toStr { |
22
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
23
|
0
|
|
|
|
|
|
my $string = ""; |
24
|
0
|
|
|
|
|
|
foreach my $cell (@{$self->{CELLS}}){ |
|
0
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
$string .= $cell->toStr(). "\n"; |
26
|
|
|
|
|
|
|
} |
27
|
0
|
|
|
|
|
|
return $string; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
1; |