< OLFrontInserter > Protocol Reference

A type of object that supports inserting objects at the front of the controlled sequence. More...

#import <ObjectiveLib/Iterator.h>

Inheritance diagram for < OLFrontInserter >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(BOOL) - isEqual:
 Test whether a given object is equal to this one.
(void) - pushFront:
 Insert a given object at the front of the controlled sequence.

Detailed Description

A type of object that supports inserting objects at the front of the controlled sequence.

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

See also:
OLFrontInsertIterator, OLDeque, OLList


Member Function Documentation

- (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, and OLList.

- (void) pushFront: (id)  object  

Insert a given object at the front of the controlled sequence.

The object is added to the collection in a manner dependent on the type of object implementing this protocol.

Parameters:
object the object to add to the controlled sequence

Reimplemented in OLDeque, and OLList.


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