OLPlus Class Reference
[Function Objects]

A function object for adding the values of two objects. More...

#import <ObjectiveLib/Functional.h>

Inheritance diagram for OLPlus:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(id) - performBinaryFunctionWithArg:andArg:
 Add the value of arg2 to the value of arg1.

Detailed Description

A function object for adding the values of two objects.


Member Function Documentation

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

Add the value of arg2 to the value of arg1.

Precondition:
arg1 must respond to the message arithmeticAdd: found in the OLArithmetic protocol.
Parameters:
arg1 the first value
arg2 the second value
Returns:
the result of addition

Reimplemented from < OLBinaryFunction >.


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