ObjectiveLib  1.0.0
Public Member Functions | Protected Attributes
OLBackInsertIterator Class Reference

An iterator that can be used to insert items into a container. More...

#import <ObjectiveLib/Iterator.h>

Inheritance diagram for OLBackInsertIterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

(id) - assign:
 Insert object at the back of the underlying container.
(id) - copyWithZone:
 Make a copy of this iterator allocating memory from zone.
(BOOL) - isEqual:
 Return whether this object is equal to another one.
Initializers and Deallocators
(id) - initWithBackInserter:
 Initialize the iterator with the given container.

Protected Attributes

id< OLBackInsertercontainer
 The container into which items will be inserted by the assign: message.

Detailed Description

An iterator that can be used to insert items into a container.

The iterator's assign: (OLBackInsertIterator) message inserts the object to be assigned at the back of the container.


Member Function Documentation

- (id) assign: (id)  object

Insert object at the back of the underlying container.

Parameters:
objectthe object to insert
Returns:
a reference to this iterator

Reimplemented from OLIterator.

- (id) copyWithZone: (NSZone *)  zone

Make a copy of this iterator allocating memory from zone.

Parameters:
zonethe zone from which to allocate memory
Returns:
a copy of this iterator

Reimplemented from OLIterator.

- (id) initWithBackInserter: (id< OLBackInserter >)  cnr

Initialize the iterator with the given container.

All insertions will be performed using the given container.

Precondition:
The container must support the OLBackInserter protocol.
Parameters:
cnrthe container that implements the OLBackInserter protocol into which to insert items
Returns:
a reference to this iterator
- (BOOL) isEqual: (id)  object

Return whether this object is equal to another one.

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

Reimplemented from OLIterator.


Member Data Documentation

- (id<OLBackInserter>) container [protected]

The container into which items will be inserted by the assign: message.


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

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