line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DWH_File::Tie::Array::Node; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
50
|
use warnings; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
339
|
|
4
|
9
|
|
|
9
|
|
70
|
use strict; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
531
|
|
5
|
9
|
|
|
9
|
|
49
|
use vars qw( @ISA $VERSION ); |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
654
|
|
6
|
|
|
|
|
|
|
use overload |
7
|
9
|
|
|
|
|
118
|
'""' => \&to_string, |
8
|
9
|
|
|
9
|
|
52
|
fallback => 1; |
|
9
|
|
|
|
|
14
|
|
9
|
|
|
|
|
|
|
|
10
|
9
|
|
|
9
|
|
725
|
use DWH_File::Slot; |
|
9
|
|
|
|
|
24
|
|
|
9
|
|
|
|
|
53
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
@ISA = qw( DWH_File::Slot ); |
13
|
|
|
|
|
|
|
$VERSION = 0.01; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
253
|
|
|
253
|
0
|
331
|
my ( $this ) = @_; |
17
|
253
|
|
33
|
|
|
1034
|
my $class = ref( $this ) || $this; |
18
|
253
|
|
|
|
|
477
|
my $self = {}; |
19
|
253
|
|
|
|
|
801
|
bless $self, $class; |
20
|
253
|
|
|
|
|
532
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub from_stored { |
24
|
162
|
|
|
162
|
0
|
378
|
my ( $this, $kernel, $data, $subscript ) = @_; |
25
|
162
|
|
|
|
|
448
|
my $self = $this->new; |
26
|
162
|
|
|
|
|
626
|
$self->{ value } = DWH_File::Value::Factory->from_stored( $kernel, $data ); |
27
|
162
|
|
|
|
|
397
|
$self->{ subscript } = $subscript; |
28
|
162
|
|
|
|
|
942
|
return $self; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
417
|
|
|
417
|
0
|
1271
|
sub to_string { "$_[ 0 ]->{ value }" } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |