| 1 | package ObjectDB::Iterator; | ||
| 2 | |||
| 3 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | sub new { | ||
| 7 | 0 | ▶ | my $class = shift; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | 0 | my (%params) = @_; | |
| 9 | |||
| 10 | 0 | my $self = {}; | |
| 11 | 0 | bless $self, $class; | |
| 12 | |||
| 13 | 0 | $self->{walker} = $params{walker}; | |
| 14 | |||
| 15 | 0 | return $self; | |
| 16 | } | ||
| 17 | |||
| 18 | sub next { | ||
| 19 | 0 | ▶ | my $self = shift; |
|
Subroutine
next: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | |||
| 21 | 0 | return $self->{walker}->($self); | |
| 22 | } | ||
| 23 | |||
| 24 | 5 | 1; | |