![]() |
API
0.9.6
|
CPCompoundPredicate is a subclass of CPPredicate used to represent logical “gate” operations (AND/OR/NOT) and comparison operations. More...
#import <CPCompoundPredicate.h>
Class Methods | |
(CPPredicate) | + andPredicateWithSubpredicates: |
(CPPredicate) | + notPredicateWithSubpredicate: |
(CPPredicate) | + orPredicateWithSubpredicates: |
![]() | |
(CPPredicate) | + predicateWithFormat: |
(CPPredicate) | + predicateWithFormat:argumentArray: |
(CPPredicate) | + predicateWithFormat:arguments: |
(CPPredicate) | + predicateWithValue: |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Additional Inherited Members | |
![]() | |
Class | isa |
CPCompoundPredicate is a subclass of CPPredicate used to represent logical “gate” operations (AND/OR/NOT) and comparison operations.
A predicate to directly compare the left and right hand sides.
Comparison operations are based on two expressions, as represented by instances of the CPExpression class. Expressions are created for constant values, key paths, and so on.
A compound predicate with 0 elements evaluates to TRUE, and a compound predicate with a single sub-predicate evaluates to the truth of its sole subpredicate.
Definition at line 2 of file CPCompoundPredicate.h.
|
implementation |
Returns a new predicate formed by AND-ing the predicates in a given array.
subpredicates | An array of CPPredicate objects. |
Definition at line 96 of file CPCompoundPredicate.j.
|
implementation |
Returns the predicate type for the receiver.
Definition at line 116 of file CPCompoundPredicate.j.
|
implementation |
Provided by category CPCompoundPredicate(CPCoding).
Definition at line 256 of file CPCompoundPredicate.j.
|
implementation |
Returns a Boolean value that indicates whether a given object matches the conditions specified by the receiver.
object | The object against which to evaluate the receiver. |
Reimplemented from CPPredicate.
Definition at line 190 of file CPCompoundPredicate.j.
|
implementation |
Returns a Boolean value that indicates whether a given object matches the conditions specified by the receiver after substituting in the values in a given variables dictionary.
object | The object against which to evaluate the receiver. |
variables | The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver. |
Reimplemented from CPPredicate.
Definition at line 195 of file CPCompoundPredicate.j.
|
implementation |
Provided by category CPCompoundPredicate(CPCoding).
Definition at line 244 of file CPCompoundPredicate.j.
|
implementation |
Returns the receiver initialized to a given type using predicates from a given array.
type | The type of the new predicate. |
Definition at line 68 of file CPCompoundPredicate.j.
|
implementation |
Determines if anObject
is functionally equivalent to the receiver.
YES
if anObject
is functionally equivalent to the receiver. Reimplemented from CPObject.
Definition at line 229 of file CPCompoundPredicate.j.
|
implementation |
Returns a new predicate formed by NOT-ing the predicates in a given array.
subpredicates | An array of CPPredicate objects. |
Definition at line 86 of file CPCompoundPredicate.j.
|
implementation |
Returns a new predicate formed by OR-ing the predicates in a given array.
subpredicates | An array of CPPredicate objects. |
Definition at line 106 of file CPCompoundPredicate.j.
|
implementation |
Returns the receiver’s format string.
Reimplemented from CPPredicate.
Definition at line 147 of file CPCompoundPredicate.j.
|
implementation |
Returns a copy of the receiver with the receiver’s variables substituted by values specified in a given substitution variables dictionary.
variables | The substitution variables dictionary. The dictionary must contain key-value pairs for all variables in the receiver. |
Reimplemented from CPPredicate.
Definition at line 130 of file CPCompoundPredicate.j.
|
implementation |
Returns the array of the receiver’s subpredicates.
Definition at line 125 of file CPCompoundPredicate.j.