push($myitem)len($myitem)top()item($index)pop()is_empty()reset();
HTML::Widgets::NavMenu::Tree::Iterator::Stack - a simple stack class.
For internal use only.
sub push { my $self = shift; my $item = shift; push @{$self->{'items'}}, $item; return 0; }
push($myitem)Pushes an item.
len($myitem)Returns the number of elements.
top()Returns the highest item.
item($index)Returns the item of index $index.
pop()Pops the item and returns it.
is_empty()Returns true if the stack is empty.
reset();Empties the stack
Copyright 2006 Shlomi Fish, all rights reserved.
This program is released under the following license: MIT X11.