ObjectiveLib  1.0.0
Public Member Functions
OLBidirectionalIterator Class Reference

An iterator that can traverse a collection both forwards and backwards. More...

#import <ObjectiveLib/Iterator.h>

Inheritance diagram for OLBidirectionalIterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

(id) - reverse
 Reverse the iterator by one position.

Detailed Description

An iterator that can traverse a collection both forwards and backwards.

This is an abstract class; the default implementation of reverse (OLBidirectionalIterator) does nothing.


Member Function Documentation

- (id) reverse

Reverse the iterator by one position.

After reversing the iterator will point to a position in the container one step before the previous position.

Returns:
a reference to this iterator

Reimplemented in OLArrayIterator, OLAssociativeIterator, OLBitIterator, OLReverseBidiIterator, OLDequeIterator, and OLListIterator.


The documentation for this class was generated from the following file:

ObjectiveLibGenerated Sat Feb 15 2014 07:45:34, © 2004-2007 Will Mason