ObjectiveLib  1.0.0
Public Member Functions
OLStreamableFunctor Class Reference

A function object that can be encoded to and decoded from an archive. More...

#import <ObjectiveLib/Functional.h>

Inheritance diagram for OLStreamableFunctor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

(void) - encodeWithCoder:
 Encode the function object.
(id) - initWithObjectInStream:
(void) - writeSelfToStream:

Detailed Description

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.


Member Function Documentation

- (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:.

Parameters:
encoderthe coder which will save the function object to the archive

Reimplemented in OLUnaryNegate, OLMemFun1, OLMemFun, OLBoolBinder2nd, OLBoolBinder1st, OLBinder2nd, OLBinder1st, and OLBinaryNegate.


The documentation for this class was generated from the following file:

ObjectiveLibGenerated Sat Feb 15 2014 07:45:35, © 2004-2007 Will Mason