Sgss_Collection_Queue_Iterator
Iterates elements inside the Sgss_Collection_Queue_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/Queue/Iterator.php (line 40)

Class overview

Variable

protected Sgss_Collection_Queue_Interface $_queue

Queue collection object

Methods

__construct (Sgss_Collection_Queue_Interface $queue)

The constructor

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

Variable detail

$_queue 

Queue collection object

Signature:
protected Sgss_Collection_Queue_Interface $_queue


Method detail

__construct

The constructor

Parameters:
Signature:
public __construct (Sgss_Collection_Queue_Interface $queue)


current

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


key

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


next

Specified by:
  • Iterator::next
Uses:
Sgss_Collection_Queue_Interface::isEmpty(), Sgss_Collection_Queue_Interface::poll()
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_Queue_Interface::isEmpty()
Related subject:
Iterator::valid()
Signature:
public boolean valid ()