Audio::TagLib::String::Iterator - Perl-only class


Audio-TagLib documentation  | view source Contained in the Audio-TagLib distribution.

Index


NAME

Top

Audio::TagLib::String::Iterator - Perl-only class

SYNOPSIS

Top

  use Audio::TagLib::String::Iterator;

  my $s = Audio::TagLib::String->new("blah blah blah");
  my $i = $s->begin();
  print ${$i++}, "\n"; # got 'b'
  print $i->data(), "\n"; # got 'l'

DESCRIPTION

Top

Implements C++ std::map::iterator to be corporately used with String.

new()

Generates an iterator attached with no map.

new(Iterator $it)

Copy constructor.

DESTROY()

Deletes the instance.

PV data()

Returns the PV pointed by current iterator.

overloaded by operator q(${})

Iterator next()

Moves to next item.

overloaded by operator q(++)

Iterator last()

Moves to last item.

overloaded by operator q(--)

void copy(Iterator $it)

Makes a copy of $it.

Iterator forward(IV $n)

Forwards current iterator $n steps.

overloaded by operator q(+=)

Iterator backward(IV $n)

Backwards current iterator $n steps.

overloaded by operator q(-=)

OVERLOADED OPERATORS

Top

${} = ++ -- += -=

EXPORT

None by default.

SEE ALSO

Top

Audio::TagLib

AUTHOR

Top

Dongxu Ma, <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Top


Audio-TagLib documentation  | view source Contained in the Audio-TagLib distribution.