File: emptyset.i

package info (click to toggle)
cvc4 1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 69,876 kB
  • sloc: cpp: 274,686; sh: 5,833; python: 1,893; java: 929; lisp: 763; ansic: 275; perl: 214; makefile: 22; awk: 2
file content (59 lines) | stat: -rw-r--r-- 1,596 bytes parent folder | download | duplicates (2)
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
%{
#include "expr/emptyset.h"
%}

#ifdef SWIGJAVA

%typemap(javabody) CVC4::EmptySet %{
  private long swigCPtr;
  protected boolean swigCMemOwn;
  private ExprManager em;

  protected $javaclassname(ExprManager em, long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
    this.em = em; // keep ref to em in SWIG proxy class
  }

  protected static long getCPtr($javaclassname obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public $javaclassname(ExprManager em, SetType t) {
    this(t);
    this.em = em;
  }
%}

// Workaround for https://github.com/swig/swig/commit/63a5a8af88271559a7b170794b4c61c30b8934ea
%typemap(javaconstruct) EmptySet {
  this(null, $imcall, true);
}

%typemap(javaconstruct) CVC4::EmptySet {
  this(null, $imcall, true);
}

%javamethodmodifiers CVC4::EmptySet::EmptySet(Type t) "private";

%typemap(javaout) const CVC4::SetType& {
  return new SetType(this.em, $jnicall, false);
}

#endif

%ignore CVC4::EmptySet::EmptySet(const CVC4::EmptySet& other);

%rename(equals) CVC4::EmptySet::operator==(const EmptySet&) const;
%ignore CVC4::EmptySet::operator!=(const EmptySet&) const;

%rename(less) CVC4::EmptySet::operator<(const EmptySet&) const;
%rename(lessEqual) CVC4::EmptySet::operator<=(const EmptySet&) const;
%rename(greater) CVC4::EmptySet::operator>(const EmptySet&) const;
%rename(greaterEqual) CVC4::EmptySet::operator>=(const EmptySet&) const;

%rename(apply) CVC4::EmptySetHashFunction::operator()(const EmptySet&) const;

%ignore CVC4::operator<<(std::ostream& out, const EmptySet& es);

%include "expr/emptyset.h"