Skip to content

Commit

Permalink
add POD for overlapCallback method in LazyNCList
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Feb 8, 2012
1 parent 2ba41ea commit dbeb58d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/LazyNCList.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ sub importExisting {
Args : $feat is the feature to be added;
=cut

sub addSorted {
my ($self, $feat) = @_;

Expand Down Expand Up @@ -188,6 +189,7 @@ sub finishChunk {
Returns : nothing
=cut

sub finish {
my ($self) = @_;
my $level;
Expand Down Expand Up @@ -264,11 +266,16 @@ sub iterHelper {
}
}

=head2 overlapCallback( $from, $to, \&func )
Calls the given function once for each of the intervals that overlap
the given interval if C<<$from <= $to>>, iterates left-to-right, otherwise
iterates right-to-left.
=cut

sub overlapCallback {
my ($self, $from, $to, $fun) = @_;
# calls the given function once for each of the
# intervals that overlap the given interval
# if from <= to, iterates left-to-right, otherwise iterates right-to-left

croak "LazyNCList not loaded" unless defined($self->{topLevelList});

Expand Down

0 comments on commit dbeb58d

Please sign in to comment.