#import <ObjectiveLib/Iterator.h>
Inheritance diagram for OLInsertIterator:
Public Member Functions | |
(id) | - assign: |
Insert object just before the last insertion, or just before the iterator passed to the initializer if it is the first insertion. | |
(id) | - copy |
Make a copy of this iterator. | |
(BOOL) | - isEqual: |
Return whether this object is equal to another one. | |
Initializers and Deallocators | |
(id) | - free |
Finalize the iterator and deallocate any allocated memory. | |
(id) | - initWithInserter:iterator: |
Initialize the iterator with the given container and iterator. | |
Protected Attributes | |
id< OLInserter > | container |
The container into which to insert items. | |
OLForwardIterator * | iterator |
An iterator for keeping track of where the next insertion should take place. |
The iterator's assign: (OLInsertIterator) message inserts the object to be assigned at the position identified by another iterator that is passed during intialization. The insertion will always take place just before the last point of insertion.
- (id) assign: | (id) | object |
Insert object just before the last insertion, or just before the iterator passed to the initializer if it is the first insertion.
object | the object to insert |
Reimplemented from OLIterator.
- (id) copy |
- (id) free |
Finalize the iterator and deallocate any allocated memory.
- (id) initWithInserter: | (id< OLInserter >) | cnr | ||
iterator: | (OLForwardIterator *) | itor | ||
Initialize the iterator with the given container and iterator.
The container is the target of future insertions, and the iterator shows where in the container insertion should begin.
cnr | the container into which to insert items | |
itor | the iterator showing the location of the first insertion |
- (BOOL) isEqual: | (id) | object |
Return whether this object is equal to another one.
object | the object to test |
Reimplemented from OLIterator.
- (id<OLInserter>) container [protected] |
The container into which to insert items.
- (OLForwardIterator*) iterator [protected] |
An iterator for keeping track of where the next insertion should take place.
|