ObjectiveLib  1.0.0
Public Member Functions
OLNegate Class Reference

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:
argthe 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 Sat Feb 15 2014 07:45:35, © 2004-2007 Will Mason