Sgss_Collection_Stack_Iterator
Iterates elements inside the Sgss_Collection_Stack_Interface

Description

Implements:
Iterator (internal interface)
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Collection/Stack/Iterator.php (line 40)

Class overview

Variable

protected Sgss_Collection_Stack_Interface $_stack

Stack collection object

Methods

__construct (Sgss_Collection_Stack_Interface $stack)

The constructor

mixed current ()
mixed key ()
mixed next ()
void rewind ()
boolean valid ()

Variable detail

$_stack 

Stack collection object

Signature:
protected Sgss_Collection_Stack_Interface $_stack


Method detail

__construct

The constructor

Parameters:
Signature:
public __construct (Sgss_Collection_Stack_Interface $stack)


current

Specified by:
  • Iterator::current
Uses:
Sgss_Collection_Stack_Interface::peek()
Related subject:
Iterator::current()
Signature:
public mixed current ()


key

Specified by:
  • Iterator::key
Related subject:
Iterator::key()
Signature:
public mixed key ()


next

Specified by:
  • Iterator::next
Uses:
Sgss_Collection_Stack_Interface::isEmpty(), Sgss_Collection_Stack_Interface::pop()
Related subject:
Iterator::next()
Signature:
public mixed next ()


rewind

Specified by:
  • Iterator::rewind
Related subject:
Iterator::rewind()
Signature:
public void rewind ()


valid

Specified by:
  • Iterator::valid
Uses:
Sgss_Collection_Stack_Interface::isEmpty()
Related subject:
Iterator::valid()
Signature:
public boolean valid ()