OLReverseRandomIterator Class Reference
[Iterators]

A class to reverse the behavior of a given iterator. More...

#import <ObjectiveLib/Iterator.h>

Inheritance diagram for OLReverseRandomIterator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(id) - advanceBy:
 Advance or reverse the iterator by a given number of positions.
(id) - copy
 Make a copy of this iterator.
(BOOL) - isEqual:
 Return whether this object is equal to another one.

Detailed Description

A class to reverse the behavior of a given iterator.

All operations are performed on the the iterator that is passed to this iterator. However, they are reversed: advance (OLReverseBidiIterator) causes the target iterator to reverse, and so forth.


Member Function Documentation

- (id) advanceBy: (int)  count  

Advance or reverse the iterator by a given number of positions.

This has the effect of advancing or reversing the underlying target iterator by the negation of count.

Parameters:
count the number of positions to move the iterator, either forward or backward
Returns:
a reference to this iterator

- (id) copy  

Make a copy of this iterator.

Returns:
a copy of this iterator

Reimplemented from OLReverseBidiIterator.

- (BOOL) isEqual: (id)  object  

Return whether this object is equal to another one.

Parameters:
object the object to test
Returns:
YES if the iterator is equal to the object, NO if not

Reimplemented from OLReverseBidiIterator.


The documentation for this class was generated from the following file:
ObjectiveLibGenerated Sun Apr 22 15:19:02 2007, © 2004-2007 Will Mason
SourceForge.net Logo