| 1 | package DWH_File::Tie::Array::Node; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 9 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 9 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 9 | ▶ | use vars qw( @ISA $VERSION ); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | use overload | ||||||||||||||||||||
| 7 | 9 | ▶ | '""' => \&to_string, | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 9 | fallback => 1; | |||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 9 | ▶ | use DWH_File::Slot; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 9 | @ISA = qw( DWH_File::Slot ); | |||||||||||||||||||
| 13 | 9 | $VERSION = 0.01; | |||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 253 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
Pod
undocumented
| |||||||||||||||||||||
| 16 | 253 | my ( $this ) = @_; | |||||||||||||||||||
| 17 | 253 | ▶ | my $class = ref( $this ) || $this; | ||||||||||||||||||
|
Condition33%1/3
ref $this || $this
MC/DC0%0/2
ref $this || $this
ref $this
$this
Truth table33%1/3
A || B
A= ref $thisB= $this
| |||||||||||||||||||||
| 18 | 253 | my $self = {}; | |||||||||||||||||||
| 19 | 253 | bless $self, $class; | |||||||||||||||||||
| 20 | 253 | return $self; | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 162 | ▶ | sub from_stored { | ||||||||||||||||||
|
Subroutine
from_stored: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 24 | 162 | my ( $this, $kernel, $data, $subscript ) = @_; | |||||||||||||||||||
| 25 | 162 | my $self = $this->new; | |||||||||||||||||||
| 26 | 162 | $self->{ value } = DWH_File::Value::Factory->from_stored( $kernel, $data ); | |||||||||||||||||||
| 27 | 162 | $self->{ subscript } = $subscript; | |||||||||||||||||||
| 28 | 162 | return $self; | |||||||||||||||||||
| 29 | } | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 255 | ▶ | sub to_string { "$_[ 0 ]->{ value }" } | ||||||||||||||||||
|
Subroutine
to_string: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 9 | 1; | |||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | __END__ | ||||||||||||||||||||