line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Wx::Perl::EntryList::FwBwIterator; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Wx::Perl::EntryList::FwBwIterator - iterate over Wx::Perl::EntryList sequentially |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
See L. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 DESCRIPTION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
A C subclass that allows sequential |
14
|
|
|
|
|
|
|
iteration over an entry list. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
1208
|
use strict; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
31
|
|
21
|
1
|
|
|
1
|
|
4
|
use base qw(Wx::Perl::EntryList::Iterator); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
153
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 next_entry |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
$it->next_entry; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Moves the iterator to the next entry of the list. Does nothing if the |
28
|
|
|
|
|
|
|
iterator points at the end of the list. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub next_entry { |
33
|
0
|
|
|
0
|
1
|
|
my( $self ) = @_; |
34
|
0
|
0
|
|
|
|
|
return if $self->at_end; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
$self->current( $self->current + 1 ); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 previous_entry |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$it->previous_entry; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Moves the iterator to the previous entry of the list. Does nothing if |
44
|
|
|
|
|
|
|
the iterator points at the beginning of the list. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub previous_entry { |
49
|
0
|
|
|
0
|
1
|
|
my( $self ) = @_; |
50
|
0
|
0
|
|
|
|
|
return if $self->at_start; |
51
|
|
|
|
|
|
|
|
52
|
0
|
|
|
|
|
|
$self->current( $self->current - 1 ); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |