OLLogicalAnd Class Reference
[Function Objects]

A function object that tests whether two object are both true. More...

#import <ObjectiveLib/Functional.h>

Inheritance diagram for OLLogicalAnd:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(BOOL) - performBinaryFunctionWithArg:andArg:
 Test whether both arguments are true.

Detailed Description

A function object that tests whether two object are both 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 both arguments are true.

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

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

Reimplemented from < OLBoolBinaryFunction >.


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