OLNegate Class Reference
[Function Objects]

A function object for reversing the sign of the value of a given object. More...

#import <ObjectiveLib/Functional.h>

Inheritance diagram for OLNegate:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(id) - performUnaryFunctionWithArg:
 Reverse the sign of the value of arg and return the result.

Detailed Description

A function object for reversing the sign of the value of a given object.


Member Function Documentation

- (id) performUnaryFunctionWithArg: (id)  arg  

Reverse the sign of the value of arg and return the result.

Precondition:
arg must respond to the message arithmeticNegate found in the OLArithmetic protocol.
Parameters:
arg the value of which to reverse the sign
Returns:
the negation of the value of arg

Reimplemented from < OLUnaryFunction >.


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