OLMinus Class Reference
[Function Objects]

A function object that subtracts the value of one object from the value of another. More...

#import <ObjectiveLib/Functional.h>

Inheritance diagram for OLMinus:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(id) - performBinaryFunctionWithArg:andArg:
 Subtract the value of arg2 from the value of arg1.

Detailed Description

A function object that subtracts the value of one object from the value of another.


Member Function Documentation

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

Subtract the value of arg2 from the value of arg1.

Precondition:
arg1 must respond to the message arithmeticSubtract: found in the OLArithmetic protocol.
Parameters:
arg1 the value from which to subtract
arg2 the value to subtract
Returns:
the result of subtraction

Reimplemented from < OLBinaryFunction >.


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