PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/cocoaint/src/foundation/NSCompoundPredicate.inc

https://github.com/slibre/freepascal
Pascal | 71 lines | 23 code | 17 blank | 31 comment | 0 complexity | 1ece44a4da8d0dbbb8eb08be4a8df81f MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1{ Parsed from Foundation.framework NSCompoundPredicate.h }
 2
 3{$ifdef TYPES}
 4{$ifndef NSCOMPOUNDPREDICATE_PAS_T}
 5{$define NSCOMPOUNDPREDICATE_PAS_T}
 6
 7{ Constants }
 8
 9const
10  NSNotPredicateType = 0;
11  NSAndPredicateType = 1;
12  NSOrPredicateType = 2;
13
14{ Types }
15type
16  NSCompoundPredicateType = NSUInteger;
17  NSCompoundPredicateTypePtr = ^NSCompoundPredicateType;
18
19{$endif}
20{$endif}
21
22{$ifdef RECORDS}
23{$ifndef NSCOMPOUNDPREDICATE_PAS_R}
24{$define NSCOMPOUNDPREDICATE_PAS_R}
25
26{$endif}
27{$endif}
28
29{$ifdef FUNCTIONS}
30{$ifndef NSCOMPOUNDPREDICATE_PAS_F}
31{$define NSCOMPOUNDPREDICATE_PAS_F}
32
33{$endif}
34{$endif}
35
36{$ifdef EXTERNAL_SYMBOLS}
37{$ifndef NSCOMPOUNDPREDICATE_PAS_S}
38{$define NSCOMPOUNDPREDICATE_PAS_S}
39
40{$endif}
41{$endif}
42
43{$ifdef FORWARD}
44  NSCompoundPredicate = objcclass;
45  NSCompoundPredicatePointer = ^NSCompoundPredicate;
46  NSCompoundPredicatePtr = NSCompoundPredicatePointer;
47
48{$endif}
49
50{$ifdef CLASSES}
51{$ifndef NSCOMPOUNDPREDICATE_PAS_C}
52{$define NSCOMPOUNDPREDICATE_PAS_C}
53
54{ NSCompoundPredicate }
55  NSCompoundPredicate = objcclass external (NSPredicate)
56  private
57    _reserved2: Pointer;
58    _type: NSUInteger;
59    _subpredicates: NSArray;
60    
61  public
62    function initWithType_subpredicates(type_: NSCompoundPredicateType; subpredicates_: NSArray): id; message 'initWithType:subpredicates:';
63    function compoundPredicateType: NSCompoundPredicateType; message 'compoundPredicateType';
64    function subpredicates: NSArray; message 'subpredicates';
65    class function andPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'andPredicateWithSubpredicates:';
66    class function orPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'orPredicateWithSubpredicates:';
67    class function notPredicateWithSubpredicate(predicate: NSPredicate): NSPredicate; message 'notPredicateWithSubpredicate:';
68  end;
69
70{$endif}
71{$endif}