| 1 | package DWH_File::Slot; | ||||||||||||||||||||||||||||
| 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 | |||||||||||||||||||||||||||||
| 7 | 9 | ▶ | use UNIVERSAL; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 9 | @ISA = qw( ); | |||||||||||||||||||||||||||
| 10 | 9 | $VERSION = 0.01; | |||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 145 | ▶ | sub set_value { | ||||||||||||||||||||||||||
|
Subroutine
set_value: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 13 | 145 | my ( $self, $value ) = @_; | |||||||||||||||||||||||||||
| 14 | 145 | $self->release; | |||||||||||||||||||||||||||
| 15 | 145 | $self->{ value } = $value; | |||||||||||||||||||||||||||
| 16 | 145 | $self->retain; | |||||||||||||||||||||||||||
| 17 | } | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 172 | ▶ | sub release { | ||||||||||||||||||||||||||
|
Subroutine
release: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 20 | 172 | my ( $self ) = @_; | |||||||||||||||||||||||||||
| 21 | 172 | ▶ | if ( $self->{ value } and UNIVERSAL::isa( $self->{ value }, | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
MC/DC100%2/2
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
$self->{"value"}
UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
Truth table100%3/3
A and B
A= $self->{"value"}B= UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
| |||||||||||||||||||||||||||||
| 22 | 'DWH_File::Reference' ) ) { | ||||||||||||||||||||||||||||
| 23 | 2 | $self->{ value }->cut_refcount; | |||||||||||||||||||||||||||
| 24 | } | ||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | 195 | ▶ | sub retain { | ||||||||||||||||||||||||||
|
Subroutine
retain: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 28 | 195 | my ( $self ) = @_; | |||||||||||||||||||||||||||
| 29 | 195 | ▶ | if ( $self->{ value } and UNIVERSAL::isa( $self->{ value }, | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
MC/DC50%1/2
$self->{"value"} and UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
$self->{"value"}
UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
Truth table66%2/3
A and B
A= $self->{"value"}B= UNIVERSAL::isa($self->{"value"}, "DWH_File::Reference")
| |||||||||||||||||||||||||||||
| 30 | 'DWH_File::Reference' ) ) { | ||||||||||||||||||||||||||||
| 31 | 27 | $self->{ value }->bump_refcount; | |||||||||||||||||||||||||||
| 32 | } | ||||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | 9 | 1; | |||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | __END__ | ||||||||||||||||||||||||||||