< OLInserter > Protocol Reference

A type of object that can insert values at a certain position in the controlled sequence. More...

#import <ObjectiveLib/Iterator.h>

Inheritance diagram for < OLInserter >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(OLIterator *) - insertAt:value:
 Insert a given object at the given position in the container.
(BOOL) - isEqual:
 Test whether a given object is equal to this one.

Detailed Description

A type of object that can insert values at a certain position in the controlled sequence.

OLInserter objects are used to support the insertion behavior of OLInsertIterator, and any object that supports this protocol may be used as the container with a OLInsertIterator.

See also:
OLInsertIterator, OLDeque, OLList, OLMap, OLSet, OLVector


Member Function Documentation

- (OLIterator*) insertAt: (OLIterator *)  where
value: (id)  object 

Insert a given object at the given position in the container.

Parameters:
where the position at which to insert the new object
object the object to insert
Returns:
an iterator that points to the newly added object

- (BOOL) isEqual: (id)  object  

Test whether a given object is equal to this one.

The meaning of equality depends on the type of object implementing this protocol.

Parameters:
object the object to test
Returns:
YES if this object is equal to the given one, NO if not

Reimplemented in OLDeque, OLList, OLMap, OLMultiMap, OLSet, OLMultiSet, and OLVector.


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