| 1 | package PMLTQ::Relation::Iterator; | ||||||||||
| 2 | 45 | our $AUTHORITY = 'cpan:MATY'; | |||||||||
| 3 | 45 | $PMLTQ::Relation::Iterator::VERSION = '1.2.2'; | |||||||||
| 4 | # ABSTRACT: Base Iterator class | ||||||||||
| 5 | |||||||||||
| 6 | 45 | ▶ | use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 45 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 45 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 45 | ▶ | use constant CONDITIONS=>0; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 45 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | sub new { | ||||||||||
| 14 | 0 | ▶ | my ($class,$conditions)=@_; | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 15 | 0 | ▶ | croak "usage: $class->new(sub{...})" unless ref($conditions) eq 'CODE'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 0 | return bless [$conditions],$class; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | sub clone { | ||||||||||
| 20 | 0 | ▶ | my ($self)=@_; | ||||||||
|
Subroutine
clone: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 21 | 0 | return bless [$self->[CONDITIONS]], ref($self); | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | sub conditions { return $_[0]->[CONDITIONS]; } | ||||||||
|
Subroutine
conditions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 25 | |||||||||||
| 26 | 0 | ▶ | sub set_conditions { $_[0]->[CONDITIONS]=$_[1]; } | ||||||||
|
Subroutine
set_conditions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 27 | |||||||||||
| 28 | ▶ | sub start {} | |||||||||
|
Subroutine
start: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 29 | |||||||||||
| 30 | ▶ | sub next {} | |||||||||
|
Subroutine
next: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 31 | |||||||||||
| 32 | ▶ | sub node {} | |||||||||
|
Subroutine
node: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 33 | |||||||||||
| 34 | ▶ | sub reset {} | |||||||||
|
Subroutine
reset: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 35 | |||||||||||
| 36 | 45 | 1; # End of PMLTQ::Relation::Iterator | |||||||||
| 37 | |||||||||||
| 38 | __END__ | ||||||||||