#import <ObjectiveLib/Vector.h>
Inheritance diagram for OLBitIterator:
Public Member Functions | |
(id) | - advance |
Advance the iterator. | |
(id) | - advanceBy: |
Advance or reverse the iterator by a given number of positions. | |
(id) | - assign: |
Assign the value of object to the bit to which this iterator refers. | |
(id) | - copy |
Make a copy of this iterator. | |
(id) | - dereference |
Dereference the iterator. | |
(int) | - difference: |
Compute the number of positions that lie between this iterator and another one. | |
(BOOL) | - isEqual: |
Return whether this object is equal to another one. | |
(id) | - reverse |
Reverse the iterator by one position. | |
Protected Attributes | |
OLBitIteratorBase | base |
The base structure for bit iterators. |
This is a random access iterator that is used to traverse elements in a boolean vector.
- (id) advance |
Advance the iterator.
After advancing the iterator will point to a position in the container one step beyond the previous position.
Reimplemented from OLForwardIterator.
- (id) advanceBy: | (int) | count |
Advance or reverse the iterator by a given number of positions.
count | the number of positions to move the iterator, either forward or backward |
Reimplemented from OLRandomAccessIterator.
- (id) assign: | (id) | object |
Assign the value of object to the bit to which this iterator refers.
The bit at the current position will be replaced with a 1 if the message boolValue
returns YES, or 0 otherwise.
boolValue
.object | the object to assign |
Reimplemented from OLIterator.
- (id) copy |
- (id) dereference |
Dereference the iterator.
Return an object that responds to the message boolValue
. The underlying objects are shared by all bit iterators, so there is no significant memory allocation that occurs with the use of bit iterators.
boolValue
Reimplemented from OLIterator.
- (int) difference: | (OLRandomAccessIterator *) | other |
Compute the number of positions that lie between this iterator and another one.
If other is after this iterator in the collection, the result will be negative, otherwise the result will be greater than or equal to zero..
other | the iterator for which to compute the distance from this one |
Reimplemented from OLRandomAccessIterator.
- (BOOL) isEqual: | (id) | object |
Return whether this object is equal to another one.
object | the object to test |
Reimplemented from OLIterator.
- (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.
Reimplemented from OLBidirectionalIterator.
- (OLBitIteratorBase) base [protected] |
The base structure for bit iterators.
|