ObjectiveLib
1.0.0
|
A function object that can be encoded to and decoded from an archive. More...
#import <ObjectiveLib/Functional.h>
Public Member Functions | |
(void) | - encodeWithCoder: |
Encode the function object. | |
(id) | - initWithObjectInStream: |
(void) | - writeSelfToStream: |
A function object that can be encoded to and decoded from an archive.
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 OLUnaryNegate, OLMemFun1, OLMemFun, OLBoolBinder2nd, OLBoolBinder1st, OLBinder2nd, OLBinder1st, and OLBinaryNegate.
|