9 package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
17 protected IntExpr(
long cPtr,
boolean cMemoryOwn) {
18 super(mainJNI.IntExpr_SWIGUpcast(cPtr), cMemoryOwn);
22 protected static long getCPtr(
IntExpr obj) {
23 return (obj ==
null) ? 0 : obj.swigCPtr;
26 @SuppressWarnings(
"deprecation")
27 protected
void finalize() {
31 public synchronized void delete() {
35 mainJNI.delete_IntExpr(swigCPtr);
43 return mainJNI.IntExpr_min(swigCPtr,
this);
47 mainJNI.IntExpr_setMin(swigCPtr,
this, m);
51 return mainJNI.IntExpr_max(swigCPtr,
this);
55 mainJNI.IntExpr_setMax(swigCPtr,
this, m);
61 public void range(
long[] l,
long[] u) {
62 mainJNI.IntExpr_range(swigCPtr,
this, l, u);
69 mainJNI.IntExpr_setRange(swigCPtr,
this, l, u);
76 mainJNI.IntExpr_setValue(swigCPtr,
this, v);
83 return mainJNI.IntExpr_bound(swigCPtr,
this);
90 return mainJNI.IntExpr_isVar(swigCPtr,
this);
97 long cPtr = mainJNI.IntExpr_var(swigCPtr,
this);
98 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
105 long cPtr = mainJNI.IntExpr_varWithName(swigCPtr,
this,
name);
106 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
113 mainJNI.IntExpr_whenRange__SWIG_0(swigCPtr,
this,
Demon.getCPtr(d), d);
120 mainJNI.IntExpr_whenRange__SWIG_1(swigCPtr,
this, closure);
127 mainJNI.IntExpr_accept(swigCPtr,
this,
ModelVisitor.getCPtr(visitor), visitor);