9 package com.google.ortools.constraintsolver;
15 private transient long swigCPtr;
18 super(mainJNI.LocalSearchOperator_SWIGUpcast(cPtr), cMemoryOwn);
23 return (obj ==
null) ? 0 : obj.swigCPtr;
26 @SuppressWarnings(
"deprecation")
27 protected
void finalize() {
31 public synchronized void delete() {
35 mainJNI.delete_LocalSearchOperator(swigCPtr);
49 mainJNI.LocalSearchOperator_change_ownership(
this, swigCPtr,
false);
54 mainJNI.LocalSearchOperator_change_ownership(
this, swigCPtr,
true);
58 this(mainJNI.new_LocalSearchOperator(),
true);
59 mainJNI.LocalSearchOperator_director_connect(
this, swigCPtr,
true,
true);
63 return mainJNI.LocalSearchOperator_nextNeighbor(swigCPtr,
this,
Assignment.getCPtr(delta), delta,
Assignment.getCPtr(deltadelta), deltadelta);
67 mainJNI.LocalSearchOperator_start(swigCPtr,
this,
Assignment.getCPtr(assignment), assignment);
71 if (getClass() ==
LocalSearchOperator.class) mainJNI.LocalSearchOperator_reset(swigCPtr,
this);
else mainJNI.LocalSearchOperator_resetSwigExplicitLocalSearchOperator(swigCPtr,
this);
75 return (getClass() ==
LocalSearchOperator.class) ? mainJNI.LocalSearchOperator_HasFragments(swigCPtr,
this) : mainJNI.LocalSearchOperator_HasFragmentsSwigExplicitLocalSearchOperator(swigCPtr,
this);
79 return (getClass() ==
LocalSearchOperator.class) ? mainJNI.LocalSearchOperator_HoldsDelta(swigCPtr,
this) : mainJNI.LocalSearchOperator_HoldsDeltaSwigExplicitLocalSearchOperator(swigCPtr,
this);