Fey::ORM::Role::Iterator - A role for things that iterate over Fey::Object::Table objects
version 0.44
package My::Iterator; use Moose; with 'Fey::ORM::Role::Iterator';
This role provides some common methods used by Fey::Object::Iterator classes, as well as defining a consistent interface for iterators.
Fey::Object::Iterator
Classes which consume this role must provide _get_next_result() and reset() methods.
_get_next_result()
reset()
This role provides the following attributes.
An array reference of class names. Each class must be a subclass of Fey::Object::Table.
The current iterator index. Also provides _inc_index() and _reset_index() methods.
_inc_index()
_reset_index()
This role provides the following methods. These methods are documented in Fey::Object::Iterator::FromSelect.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2011 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Fey::ORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fey::ORM
CPAN shell
perl -MCPAN -e shell install Fey::ORM
For more information on module installation, please visit the detailed CPAN module installation guide.