EmptyIterator Class Reference
[Internal classes]

An empty Iterator. More...

Inheritance diagram for EmptyIterator:

Inheritance graph
{Iterator\n||+ current()\l+ key()\l+ next()\l+ rewind()\l+ valid()\l}{Traversable\n||}
[legend]
Collaboration diagram for EmptyIterator:

Collaboration graph
{Iterator\n||+ current()\l+ key()\l+ next()\l+ rewind()\l+ valid()\l}{Traversable\n||}
[legend]
List of all members.

Public Member Functions

 current ()
 key ()
 next ()
 rewind ()
 valid ()

Detailed Description

An empty Iterator.

Author:
Marcus Boerger
Version:
1.0
Since:
PHP 5.1

Definition at line 18 of file emptyiterator.inc.


Member Function Documentation

EmptyIterator::current (  ) 

This function must not be called.

It throws an exception upon access.

Exceptions:
Exception 
Returns:
void

Implements Iterator.

Definition at line 39 of file emptyiterator.inc.

00040     {
00041         throw new Exception('Accessing the value of an EmptyIterator');
00042     }

EmptyIterator::key (  ) 

This function must not be called.

It throws an exception upon access.

Exceptions:
Exception 
Returns:
void

Implements Iterator.

Definition at line 48 of file emptyiterator.inc.

00049     {
00050         throw new Exception('Accessing the key of an EmptyIterator');
00051     }

EmptyIterator::next (  ) 

No operation.

Returns:
void

Implements Iterator.

Definition at line 56 of file emptyiterator.inc.

00057     {
00058         // nothing to do
00059     }

EmptyIterator::rewind (  ) 

No operation.

Returns:
void

Implements Iterator.

Definition at line 23 of file emptyiterator.inc.

00024     {
00025         // nothing to do
00026     }

EmptyIterator::valid (  ) 

Returns:
false

Implements Iterator.

Definition at line 30 of file emptyiterator.inc.

00031     {
00032         return false;
00033     }


The documentation for this class was generated from the following file:
Generated on Thu Apr 26 01:05:44 2007 for SPL-StandardPHPLibrary by  doxygen 1.5.2