NAME
Iterator::Flex::Factory - Create on-the-fly Iterator::Flex classes/objects
VERSION
version 0.16
CLASS METHODS
to_iterator
$iter = Iterator::Flex::Factory->to_iterator( $iterable, \%par );
Construct an iterator from an iterable thing, with optional general parameters.
construct
$iterator = Iterator::Flex::Factory->construct( \%interface_pars, \%signal_pars );
Construct an iterator object from the passed hash of interface parameters and signal parameters
construct_from_iterable
$iter = Iterator::Flex::Factory->construct_from_iterable( $iterable, \%pars );
Construct an iterator from an "iterable thing" in Iterator::Flex::Manual::Glossary. The returned iterator will return undef
upon exhaustion.
If $iterable
is:
an object, the arguments are passed to "construct_from_object".
an array, the arguments are passed to "new" in Iterator::Flex::Array.
a coderef, the arguments are passed to "construct".
a globref, the arguments are passed to "construct".
construct_from_array
$iter = Iterator::Flex::Factory->construct_from_array( $array_ref, ?\%pars );
construct_from_object
$iter = Iterator::Flex::Factory->construct_from_object( $object, %parameters );
Construct an iterator from an "iterable object" in Iterator::Flex::Manual::Glossary. Normal use is to call "to_iterator", "construct_from_iterable" or simply use "iter" in Iterator::Flex.
If the object has the following methods, they are used by the constructed iterator:
INTERNALS
SUPPORT
Bugs
Please report any bugs or feature requests to bug-iterator-flex@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=Iterator-Flex
Source
Source is available at
https://gitlab.com/djerius/iterator-flex
and may be cloned from
https://gitlab.com/djerius/iterator-flex.git
SEE ALSO
Please see those modules/websites for more information related to this module.
AUTHOR
Diab Jerius <djerius@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007