Audio::TagLib::ID3v2::FrameListMap - Perl-only class
use Audio::TagLib::ID3v2::FrameListMap; my $tag = Audio::TagLib::ID3v2::Tag->new(); $tag->setTitle(Audio::TagLib::String->new("title")); $tag->setArtist(Audio::TagLib::String->new("artist")); my $i = $tag->frameListMap(); print $i->size(), "\n"; # got 2 tie my %i, ref($i), $i; my $l = $i{Audio::TagLib::ByteVector->new("TIT2")}; print $l->begin()->data()->toString()->toCString(), "\n"; # got "title"
Implements TagLib::ID3v2::FrameListMap in C/C++ code, which is of type TagLib::Map<ByteVector, FrameList>.
Optionally, you can tie an instance of ItemListMap with a hash symbol, just like this: tie my %h, ref($i), $i;, Then operate throught %h.
tie my %h, ref($i), $i;
see Audio::TagLib::ID3v2::Tag::frameListMap()
Constructs an empty FrameListMap.
Make a shallow, implicitly shared, copy of $m.
Destroys this instance of the FrameListMap.
Returns an STL style iterator to the beginning of the map.
see Audio::TagLib::ID3v2::FrameListMap::Iterator
Returns an STL style iterator to the end of the map.
Inserts $value under $key in the map. If a value for $key already exists it will be overwritten.
Removes all of the elements from elements from the map. This however will not free memory of all the items.
The number of elements in the map.
see isEmpty()
Returns true if the map is empty.
see size()
Find the first occurance of $key.
Returns true if the map contains an instance of $key.
Erase the item at $it from the list.
Returns the value associated with $key.
note This has undefined behavior if the key is not present in the map.
None by default.
Audio::TagLib
Dongxu Ma, <dongxu@cpan.org>
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 Audio::TagLib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::TagLib
CPAN shell
perl -MCPAN -e shell install Audio::TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.