#import <ObjectiveLib/Functional.h>
Inheritance diagram for OLStreamableFunctor:
Public Member Functions | |
(void) | - encodeWithCoder: |
Encode the function object. | |
(id) | - initWithCoder: |
Initialize the function object. | |
(id) | - initWithObjectInStream: |
Initialize the object. | |
(void) | - writeSelfToStream: |
Write the object to a stream. |
This class merely provides the default implementation of the NSCoding
protocol for all function objects. Since most function objects don't have any instance variables the encode and decode methods of this class do all the work for the vast majority of function object classes. All function objects inherit from OLCodableFunctor.
- (void) encodeWithCoder: | (NSCoder *) | encoder |
Encode the function object.
The function object is saved to an archive using encoder. The function object will be retrieved from the archive using the initializer initWithCoder:.
encoder | the coder which will save the function object to the archive |
Reimplemented in OLBinaryNegate, OLBinder1st, OLBinder2nd, OLBoolBinder1st, OLBoolBinder2nd, OLMemFun, OLMemFun1, and OLUnaryNegate.
- (id) initWithCoder: | (NSCoder *) | decoder |
Initialize the function object.
This initializer creates a new function object from an archive and returns it.
decoder | the coder which will decode the archived function object |
Reimplemented in OLBinaryNegate, OLBinder1st, OLBinder2nd, OLBoolBinder1st, OLBoolBinder2nd, OLMemFun, OLMemFun1, and OLUnaryNegate.
- (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 < OLStreamable >.
Reimplemented in OLBinaryNegate, OLBinder1st, OLBinder2nd, OLBoolBinder1st, OLBoolBinder2nd, OLMemFun, OLMemFun1, and OLUnaryNegate.
- (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 < OLStreamable >.
Reimplemented in OLBinaryNegate, OLBinder1st, OLBinder2nd, OLBoolBinder1st, OLBoolBinder2nd, OLMemFun, OLMemFun1, and OLUnaryNegate.
|