ObjectiveLib  1.0.0
Public Member Functions
<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:
wherethe position at which to insert the new object
objectthe 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:
objectthe object to test
Returns:
YES if this object is equal to the given one, NO if not

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


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

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