line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package UR::Value::Iterator; |
2
|
|
|
|
|
|
|
|
3
|
266
|
|
|
266
|
|
3906
|
use strict; |
|
266
|
|
|
|
|
1708
|
|
|
266
|
|
|
|
|
7044
|
|
4
|
266
|
|
|
266
|
|
895
|
use warnings; |
|
266
|
|
|
|
|
318
|
|
|
266
|
|
|
|
|
35077
|
|
5
|
|
|
|
|
|
|
require UR; |
6
|
|
|
|
|
|
|
our $VERSION = "0.46"; # UR $VERSION; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub create { |
9
|
0
|
|
|
0
|
0
|
0
|
my $class = shift; |
10
|
0
|
|
|
|
|
0
|
my $set = $class->define_set(@_); |
11
|
0
|
|
|
|
|
0
|
my @members = $set->members; |
12
|
0
|
|
|
|
|
0
|
return $class->create_for_value_arrayref(\@members); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub create_for_value_arrayref { |
16
|
1
|
|
|
1
|
0
|
2
|
my ($class, $arrayref) = @_; |
17
|
1
|
|
|
|
|
3
|
my @copy = @$arrayref; |
18
|
1
|
|
|
|
|
6
|
return bless { members => \@copy }, $class; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub next { |
22
|
5
|
|
|
5
|
0
|
12
|
shift @{ shift->{members} }; |
|
5
|
|
|
|
|
8
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|