< OLUnaryFunction > Protocol Reference
[Function Objects]

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

#import <ObjectiveLib/Functional.h>

Inheritance diagram for < OLUnaryFunction >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

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


Member Function Documentation

- (id) performUnaryFunctionWithArg: (id)  arg  

Perform the function of this function object.

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

Parameters:
arg the argument to the function
Returns:
a new object containing the result

Reimplemented in OLBinder1st, OLBinder2nd, OLMemFun, and OLNegate.


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