< OLBackInserter > Protocol Reference

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

#import <ObjectiveLib/Iterator.h>

Inheritance diagram for < OLBackInserter >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

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

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

See also:
OLBackInsertIterator, OLDeque, OLList, OLVector


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

- (void) pushBack: (id)  object  

Insert a given object at the back 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, OLList, and OLVector.


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