9package com.google.ortools.constraintsolver;
30 private transient long swigCPtr;
33 super(mainJNI.LocalSearchOperator_SWIGUpcast(cPtr), cMemoryOwn);
38 return (obj ==
null) ? 0 : obj.swigCPtr;
45 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
47 obj.swigCMemOwn =
false;
53 @SuppressWarnings({
"deprecation",
"removal"})
62 mainJNI.delete_LocalSearchOperator(swigCPtr);
76 mainJNI.LocalSearchOperator_change_ownership(
this, swigCPtr,
false);
81 mainJNI.LocalSearchOperator_change_ownership(
this, swigCPtr,
true);
85 this(mainJNI.new_LocalSearchOperator(),
true);
86 mainJNI.LocalSearchOperator_director_connect(
this, swigCPtr,
true,
true);
94 if (getClass() ==
LocalSearchOperator.class) mainJNI.LocalSearchOperator_EnterSearch(swigCPtr,
this);
else mainJNI.LocalSearchOperator_EnterSearchSwigExplicitLocalSearchOperator(swigCPtr,
this);
98 mainJNI.LocalSearchOperator_start(swigCPtr,
this,
Assignment.
getCPtr(assignment), assignment);
102 if (getClass() ==
LocalSearchOperator.class) mainJNI.LocalSearchOperator_reset(swigCPtr,
this);
else mainJNI.LocalSearchOperator_resetSwigExplicitLocalSearchOperator(swigCPtr,
this);
106 return (getClass() ==
LocalSearchOperator.class) ? mainJNI.LocalSearchOperator_HasFragments(swigCPtr,
this) : mainJNI.LocalSearchOperator_HasFragmentsSwigExplicitLocalSearchOperator(swigCPtr,
this);
110 return (getClass() ==
LocalSearchOperator.class) ? mainJNI.LocalSearchOperator_HoldsDelta(swigCPtr,
this) : mainJNI.LocalSearchOperator_HoldsDeltaSwigExplicitLocalSearchOperator(swigCPtr,
this);