line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DWH_File::Tie::Foreign; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
57
|
use warnings; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
325
|
|
4
|
9
|
|
|
9
|
|
50
|
use strict; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
306
|
|
5
|
9
|
|
|
9
|
|
44
|
use vars qw( @ISA $VERSION ); |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
592
|
|
6
|
|
|
|
|
|
|
use overload |
7
|
9
|
|
|
|
|
89
|
'""' => \&to_string, |
8
|
9
|
|
|
9
|
|
50
|
fallback => 1; |
|
9
|
|
|
|
|
15
|
|
9
|
|
|
|
|
|
|
|
10
|
9
|
|
|
9
|
|
6114
|
use DWH_File::Value; |
|
9
|
|
|
|
|
25
|
|
|
9
|
|
|
|
|
97
|
|
11
|
9
|
|
|
9
|
|
246
|
use DWH_File::Reference; |
|
9
|
|
|
|
|
20
|
|
|
9
|
|
|
|
|
53
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
@ISA = qw( DWH_File::Value DWH_File::Reference ); |
14
|
|
|
|
|
|
|
$VERSION = 0.01; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
17
|
21
|
|
|
21
|
0
|
125
|
my ( $this, $client, $value ) = @_; |
18
|
21
|
|
33
|
|
|
206
|
my $class = ref( $this ) || $this; |
19
|
21
|
|
|
|
|
114
|
my $self = { client => $client, |
20
|
|
|
|
|
|
|
value => $value, |
21
|
|
|
|
|
|
|
string_val => '', |
22
|
|
|
|
|
|
|
}; |
23
|
21
|
|
|
|
|
75
|
bless $self, $class; |
24
|
21
|
|
|
|
|
303
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub to_string { |
28
|
|
|
|
|
|
|
$_[ 0 ]->{ string_val } ||= $_[ 0 ]->{ client }-> |
29
|
82
|
|
66
|
82
|
0
|
765
|
reference_string( $_[ 0 ]->{ value } ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
19
|
|
|
19
|
0
|
327
|
sub actual_value { $_[ 0 ]->{ value }->actual_value } |
33
|
|
|
|
|
|
|
|
34
|
2
|
|
|
2
|
0
|
71
|
sub bump_refcount { $_[ 0 ]->{ value }->bump_refcount } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
0
|
|
sub cut_refcount { $_[ 0 ]->{ value }->cut_refcount } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |