< OLBinaryFunction > Protocol Reference
[Function Objects]

A protocol defining the message for performing the operation of a binary function object. More...

#import <ObjectiveLib/Functional.h>

Inheritance diagram for < OLBinaryFunction >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(id) - performBinaryFunctionWithArg:andArg:
 Perform the function of this function object.

Detailed Description

A protocol defining the message for performing the operation of a binary function object.


Member Function Documentation

- (id) performBinaryFunctionWithArg: (id)  arg1
andArg: (id)  arg2 

Perform the function of this function object.

The operation is performed on the two parameters, a new object is allocated containing the result, and it is returned.

Parameters:
arg1 the first argument
arg2 the second argument
Returns:
a new object containing the result

Reimplemented in OLDivides, OLMemFun1, OLMinus, OLModulus, OLMultiplies, and OLPlus.


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