Net::Radio::oFono::Helpers::Container - simple container providing typical container functions
This package implements a class which will act as a container for items of any type. The container can be forced to accept only classes of a specific type.
Net::Radio::oFono::Helpers::Container
Instantiates a new container object.
Parameters:
All parameters are optional.
Reference to an array for managing items. Use with caution, it can be dangerous when two containers access the same list.
Name of classes to restrict the type which can be added. Adding items which are not of specified type (or derived), an exception is thrown via Assert.
Adds a new item to the container.
List of items to add to the container.
Removes an item from the container.
Item to remove from the container.
Returns:
The removed element in scalar mode and and array containing the removed element at position 0 and it's index in the managed list at index 1 in array mode.
Returns whether this container manages specified item or not, compared by the item address (Scalar::Util::refaddr).
The item to search for being in this container or not
Boolean value - either it's in there or not.
Clears this container, resets iterator. For each item, explicitely remove is called for clearing.
Returns true when the container is empty - false otherwise.
Returns the number of elements contained.
Calls given sub for each item once, with the item as only argument. It's not recommended to use this method - it's here for compatibility reasons only. A better way to do sth. for each item is to use the iterator operators.
Please report any bugs or feature requests to bug-net-radio-ofono at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Radio-oFono. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-radio-ofono at rt.cpan.org
If you think you've found a bug then please read "How to Report Bugs Effectively" by Simon Tatham: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html.
You can find documentation for this module with the perldoc command.
perldoc Net::Radio::oFono
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Radio-oFono
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-Radio-oFono
CPAN Ratings
http://cpanratings.perl.org/d/Net-Radio-oFono
Search CPAN
http://search.cpan.org/dist/Net-Radio-oFono/
Bugs and feature requests are accepted against the latest version only. To get patches for earlier versions, you need to get an agreement with a developer of your choice - who may or not report the issue and a suggested fix upstream (depends on the license you have chosen).
For business support you can contact Jens via his CPAN email address rehsackATcpan.org. Please keep in mind that business support is neither available for free nor are you eligible to receive any support based on the license distributed with this package.
Jens Rehsack, <rehsack at cpan.org>
<rehsack at cpan.org>
Copyright 2012 Jens Rehsack.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Net::Radio::oFono, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Radio::oFono
CPAN shell
perl -MCPAN -e shell install Net::Radio::oFono
For more information on module installation, please visit the detailed CPAN module installation guide.