Template::Flute::Iterator::Cache - Iterator caching class
This iterator is used for caching another iterator which is used multiple times in a list. We can safely use reset method on the caching iterator, but not always on the original iterator.
Original iterator (required).
Current position.
Cached data.
Whether cache is filled or not.
Returns count of (original) iterator.
Returns next record, either from original iterator or our cache.
Resets the iterator.
Stefan Hornburg (Racke), <racke@linuxia.de>
Copyright 2014-2016 Stefan Hornburg (Racke) <racke@linuxia.de>.
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 Template::Flute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Flute
CPAN shell
perl -MCPAN -e shell install Template::Flute
For more information on module installation, please visit the detailed CPAN module installation guide.