TagLib::ID3v2::FrameList::Iterator - Perl-only class
use TagLib::ID3v2::FrameList::Iterator; my $tag = TagLib::ID3v2::Tag->new(); $tag->setTitle(TagLib::String->new("title")); $tag->setArtist(TagLib::String->new("artist")); my $list = $tag->frameList(); my $i = $list->begin(); print ${$i++}->toString()->toCString(), "\n"; # got "title" print $$i->toString()->toCString(), "\n"; # got "artist"
Implements C++ std::map::iterator to be corporately used with FrameList.
Generates an iterator attached with no map.
Copy constructor.
Deletes the instance.
Returns the Frame pointed by current iterator.
overloaded by operator q(${})
Moves to next item.
overloaded by operator q(++)
Moves to last item.
overloaded by operator q(--)
Makes a copy of $it.
${} = ++ --
None by default.
TagLib
Dongxu Ma, <dongxu.ma@gmail.com>
Copyright (C) 2005 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
To install TagLib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TagLib
CPAN shell
perl -MCPAN -e shell install TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.