OLLogicalOr Class Reference
[Function Objects]

A function object that tests whether either of two object is true. More...

#import <ObjectiveLib/Functional.h>

Inheritance diagram for OLLogicalOr:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(BOOL) - performBinaryFunctionWithArg:andArg:
 Test whether either of the arguments is true.

Detailed Description

A function object that tests whether either of two object is true.

Both objects passed must be convertible to boolean values, meaning that they must respond to the message boolValue.


Member Function Documentation

- (BOOL) performBinaryFunctionWithArg: (id)  arg1
andArg: (id)  arg2 

Test whether either of the arguments is true.

The message converts both arguments to boolean values using the message boolValue, then returns YES if either value is true.

Precondition:
arg1 and arg2 must respond to the message boolValue.
Parameters:
arg1 the first argument
arg2 the second argument
Returns:
YES if arg1 or arg2 is true, NO otherwise

Reimplemented from < OLBoolBinaryFunction >.


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