9 package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
17 protected BaseLns(
long cPtr,
boolean cMemoryOwn) {
18 super(mainJNI.BaseLns_SWIGUpcast(cPtr), cMemoryOwn);
22 protected static long getCPtr(
BaseLns obj) {
23 return (obj ==
null) ? 0 : obj.swigCPtr;
26 @SuppressWarnings(
"deprecation")
27 protected
void finalize() {
31 public synchronized void delete() {
35 mainJNI.delete_BaseLns(swigCPtr);
49 mainJNI.BaseLns_change_ownership(
this, swigCPtr,
false);
54 mainJNI.BaseLns_change_ownership(
this, swigCPtr,
true);
58 this(mainJNI.new_BaseLns(vars),
true);
59 mainJNI.BaseLns_director_connect(
this, swigCPtr,
true,
true);
63 if (getClass() ==
BaseLns.class) mainJNI.BaseLns_initFragments(swigCPtr,
this);
else mainJNI.BaseLns_initFragmentsSwigExplicitBaseLns(swigCPtr,
this);
67 return mainJNI.BaseLns_nextFragment(swigCPtr,
this);
71 mainJNI.BaseLns_appendToFragment(swigCPtr,
this, index);
75 return mainJNI.BaseLns_fragmentSize(swigCPtr,
this);
79 return (getClass() ==
BaseLns.class) ? mainJNI.BaseLns_HasFragments(swigCPtr,
this) : mainJNI.BaseLns_HasFragmentsSwigExplicitBaseLns(swigCPtr,
this);