summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/foundation/NSCompoundPredicate.inc
blob: 47fbaa04180945c4c69408d08eaadc721ab1fd7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{ Parsed from Foundation.framework NSCompoundPredicate.h }
{ Version: 2.1.2 - Wed Dec 8 10:06:43 CET 2010 }


{$ifdef TYPES}
{$ifndef NSCOMPOUNDPREDICATE_PAS_T}
{$define NSCOMPOUNDPREDICATE_PAS_T}

{ Constants }

const
  NSNotPredicateType = 0;
  NSAndPredicateType = 0;
  NSOrPredicateType = 1;

{ Types }
type
  NSCompoundPredicateType = NSUInteger;
  NSCompoundPredicateTypePtr = ^NSCompoundPredicateType;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSCOMPOUNDPREDICATE_PAS_R}
{$define NSCOMPOUNDPREDICATE_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSCOMPOUNDPREDICATE_PAS_F}
{$define NSCOMPOUNDPREDICATE_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSCOMPOUNDPREDICATE_PAS_S}
{$define NSCOMPOUNDPREDICATE_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSCompoundPredicate = objcclass;
  NSCompoundPredicatePointer = ^NSCompoundPredicate;
  NSCompoundPredicatePtr = NSCompoundPredicatePointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSCOMPOUNDPREDICATE_PAS_C}
{$define NSCOMPOUNDPREDICATE_PAS_C}

{ NSCompoundPredicate }
  NSCompoundPredicate = objcclass(NSPredicate)
  private
    _reserved2: Pointer;
    _type: NSUInteger;
    _subpredicates: NSArray;
    
  public
    class function alloc: NSCompoundPredicate; message 'alloc';

    function initWithType_subpredicates(type_: NSCompoundPredicateType; subpredicates_: NSArray): id; message 'initWithType:subpredicates:';
    function compoundPredicateType: NSCompoundPredicateType; message 'compoundPredicateType';
    function subpredicates: NSArray; message 'subpredicates';
    class function andPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'andPredicateWithSubpredicates:';
    class function orPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'orPredicateWithSubpredicates:';
    class function notPredicateWithSubpredicate(predicate: NSPredicate): NSPredicate; message 'notPredicateWithSubpredicate:';
  end; external;

{$endif}
{$endif}