|
/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Games-Sudoku-Component/blib/lib/Games/Sudoku/Component/Controller/History.pm |
Games::Sudoku::Component::Controller::History
use Games::Sudoku::Component::Controller::History; my $history = Games::Sudoku::Component::Controller::History->new;
my $item = Games::Sudoku::Component::Table::Item->new(
row => 1,
col => 2,
allowed => [1,3],
);
$history->push($item);
my $item2 = $history->pop;
This module provides a history stack for the Games::Sudoku::Component::Controller manpage.
Creates an object.
Stores an object (supposedly of the Games::Sudoku::Component::Table::Item manpage) in the stack.
Retrieves an object (supposedly of the Games::Sudoku::Component::Table::Item manpage) from the stack.
Returns an array of the number of objects stored in the stack.
Returns how many items are stored in the stack.
Clears the stack.
Kenichi Ishigaki, <ishigaki@cpan.org>
Copyright (C) 2006 by Kenichi Ishigaki
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Games-Sudoku-Component/blib/lib/Games/Sudoku/Component/Controller/History.pm |