9 package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
14 protected IntExpr(
long cPtr,
boolean cMemoryOwn) {
15 super(mainJNI.IntExpr_SWIGUpcast(cPtr), cMemoryOwn);
19 protected static long getCPtr(
IntExpr obj) {
20 return (obj ==
null) ? 0 : obj.swigCPtr;
23 @SuppressWarnings(
"deprecation")
24 protected
void finalize() {
28 public synchronized void delete() {
32 mainJNI.delete_IntExpr(swigCPtr);
40 return mainJNI.IntExpr_min(swigCPtr,
this);
44 mainJNI.IntExpr_setMin(swigCPtr,
this, m);
48 return mainJNI.IntExpr_max(swigCPtr,
this);
52 mainJNI.IntExpr_setMax(swigCPtr,
this, m);
55 public void range(
long[] l,
long[] u) {
56 mainJNI.IntExpr_range(swigCPtr,
this, l, u);
60 mainJNI.IntExpr_setRange(swigCPtr,
this, l, u);
64 mainJNI.IntExpr_setValue(swigCPtr,
this, v);
68 return mainJNI.IntExpr_bound(swigCPtr,
this);
72 return mainJNI.IntExpr_isVar(swigCPtr,
this);
76 long cPtr = mainJNI.IntExpr_var(swigCPtr,
this);
77 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
81 long cPtr = mainJNI.IntExpr_varWithName(swigCPtr,
this,
name);
82 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
86 mainJNI.IntExpr_whenRange__SWIG_0(swigCPtr,
this,
Demon.getCPtr(d), d);
90 mainJNI.IntExpr_whenRange__SWIG_1(swigCPtr,
this, closure);
94 mainJNI.IntExpr_accept(swigCPtr,
this,
ModelVisitor.getCPtr(visitor), visitor);