| 1 | package DBM::Deep::Sector; | ||
| 2 | |||
| 3 | 53 | ▶ | use 5.008_004; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 53 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 53 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 53 | ▶ | use Scalar::Util (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | sub new { | ||
| 11 | 26682 | ▶ | my $self = bless $_[1], $_[0]; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 26682 | Scalar::Util::weaken( $self->{engine} ); | |
| 13 | 26682 | $self->_init; | |
| 14 | 26682 | return $self; | |
| 15 | } | ||
| 16 | |||
| 17 | ▶ | sub _init {} | |
|
Subroutine
_init: not called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | sub clone { | ||
| 20 | 27 | ▶ | my $self = shift; |
|
Subroutine
clone: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | 27 | return ref($self)->new({ | |
| 22 | engine => $self->engine, | ||
| 23 | type => $self->type, | ||
| 24 | data => $self->data, | ||
| 25 | }); | ||
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | 204886 | ▶ | sub engine { $_[0]{engine} } |
|
Subroutine
engine: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 30 | 122064 | ▶ | sub offset { $_[0]{offset} } |
|
Subroutine
offset: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | 8939 | ▶ | sub type { $_[0]{type} } |
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 32 | 8500 | ▶ | sub staleness { $_[0]{staleness} } |
|
Subroutine
staleness: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 33 | |||
| 34 | 0 | ▶ | sub load { die "load must be implemented in a child class" } |
|
Subroutine
load: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 35 | |||
| 36 | 53 | 1; | |
| 37 | __END__ | ||