#import <ObjectiveLib/Functional.h>
Inheritance diagram for OLMemFun1:
Public Member Functions | |
(id) | - performBinaryFunctionWithArg:andArg: |
Send the stored message to the object referenced by arg1 using arg2 as an additional parameter. | |
(void) | - writeSelfToStream: |
Write the object to a stream. | |
Initializers and Deallocators | |
(id) | - initWithObjectInStream: |
Initialize the object. | |
(id) | - initWithSelector: |
Initialize the function object with the given selector. | |
Static Public Member Functions | |
(id) | + functorWithSelector: |
Create and return an instance of OLMemFun1. | |
Protected Attributes | |
SEL | sel |
The selector to perform. |
The selector is stored in the function object and then is invoked by the function object using the given argument as the object to which to send the message.
+ (id) functorWithSelector: | (SEL) | selector |
Create and return an instance of OLMemFun1.
selector | the selector to store for future invocation |
- (id) initWithObjectInStream: | (OLObjectInStream *) | stream |
Initialize the object.
Each instance variable is read from stream and all other initialization is performed.
stream | the stream from which to read |
Reimplemented from OLStreamableFunctor.
- (id) initWithSelector: | (SEL) | selector |
Initialize the function object with the given selector.
selector | the selector to store for future invocation |
- (id) performBinaryFunctionWithArg: | (id) | arg1 | ||
andArg: | (id) | arg2 | ||
Send the stored message to the object referenced by arg1 using arg2 as an additional parameter.
The object returned may or may not be owned by the sender of the message, depending on the nature of the message being sent. No attempt is made by the function object to control memory management of the returned object.
arg1 | the object to which to send the message | |
arg2 | the argument to send along with the message |
Reimplemented from < OLBinaryFunction >.
- (void) writeSelfToStream: | (OLObjectOutStream *) | stream |
Write the object to a stream.
All instance variables are written to stream.
stream | the stream to which to write. |
Reimplemented from OLStreamableFunctor.
- (SEL) sel [protected] |
The selector to perform.
|