22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
LocalSearchFilter obj) {
26 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
LocalSearchFilter obj) {
32 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
33 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
34 obj.swigCMemOwn =
false;
38 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
42 protected override void Dispose(
bool disposing) {
44 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
51 base.Dispose(disposing);
55 public virtual void Relax(Assignment delta, Assignment deltadelta) {
56 if (SwigDerivedClassHasMethod(
"Relax", swigMethodTypes1)) operations_research_constraint_solverPINVOKE.LocalSearchFilter_RelaxSwigExplicitLocalSearchFilter(swigCPtr, Assignment.getCPtr(delta), Assignment.getCPtr(deltadelta));
else operations_research_constraint_solverPINVOKE.LocalSearchFilter_Relax(swigCPtr, Assignment.getCPtr(delta), Assignment.getCPtr(deltadelta));
77 public virtual void Revert() {
81 public virtual void Reset() {
96 SwigDirectorConnect();
99 private void SwigDirectorConnect() {
100 if (SwigDerivedClassHasMethod(
"ToString", swigMethodTypes0))
102 if (SwigDerivedClassHasMethod(
"Relax", swigMethodTypes1))
104 if (SwigDerivedClassHasMethod(
"Commit", swigMethodTypes2))
106 if (SwigDerivedClassHasMethod(
"Accept", swigMethodTypes3))
108 if (SwigDerivedClassHasMethod(
"IsIncremental", swigMethodTypes4))
110 if (SwigDerivedClassHasMethod(
"Synchronize", swigMethodTypes5))
112 if (SwigDerivedClassHasMethod(
"Revert", swigMethodTypes6))
114 if (SwigDerivedClassHasMethod(
"Reset", swigMethodTypes7))
116 if (SwigDerivedClassHasMethod(
"GetSynchronizedObjectiveValue", swigMethodTypes8))
118 if (SwigDerivedClassHasMethod(
"GetAcceptedObjectiveValue", swigMethodTypes9))
120 operations_research_constraint_solverPINVOKE.
LocalSearchFilter_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9);
123 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
124 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
125 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
126 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
127 if (methodInfo.DeclaringType ==
null)
130 if (methodInfo.Name != methodName)
133 var parameters = methodInfo.GetParameters();
134 if (parameters.Length != methodTypes.Length)
137 bool parametersMatch =
true;
138 for (var i = 0; i < parameters.Length; i++) {
139 if (parameters[i].ParameterType != methodTypes[i]) {
140 parametersMatch =
false;
145 if (!parametersMatch)
148 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(
LocalSearchFilter))) &&
149 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
157 private string SwigDirectorMethodToString() {
161 private void SwigDirectorMethodRelax(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
162 Relax((delta == global::System.IntPtr.Zero) ?
null :
new Assignment(delta,
false), (deltadelta == global::System.IntPtr.Zero) ?
null :
new Assignment(deltadelta,
false));
165 private void SwigDirectorMethodCommit(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
166 Commit((delta == global::System.IntPtr.Zero) ?
null :
new Assignment(delta,
false), (deltadelta == global::System.IntPtr.Zero) ?
null :
new Assignment(deltadelta,
false));
169 private bool SwigDirectorMethodAccept(global::System.IntPtr delta, global::System.IntPtr deltadelta,
long objective_min,
long objective_max) {
170 return Accept((delta == global::System.IntPtr.Zero) ?
null :
new Assignment(delta,
false), (deltadelta == global::System.IntPtr.Zero) ?
null :
new Assignment(deltadelta,
false), objective_min, objective_max);
173 private bool SwigDirectorMethodIsIncremental() {
177 private void SwigDirectorMethodSynchronize(global::System.IntPtr assignment, global::System.IntPtr delta) {
178 Synchronize((assignment == global::System.IntPtr.Zero) ?
null :
new Assignment(assignment,
false), (delta == global::System.IntPtr.Zero) ?
null :
new Assignment(delta,
false));
181 private void SwigDirectorMethodRevert() {
185 private void SwigDirectorMethodReset() {
189 private long SwigDirectorMethodGetSynchronizedObjectiveValue() {
193 private long SwigDirectorMethodGetAcceptedObjectiveValue() {
219 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };
220 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { typeof(
Assignment), typeof(
Assignment) };
221 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
222 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { typeof(Assignment), typeof(Assignment), typeof(
long), typeof(
long) };
223 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { };
224 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
225 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { };
226 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { };
227 private static global::System.Type[] swigMethodTypes8 =
new global::System.Type[] { };
228 private static global::System.Type[] swigMethodTypes9 =
new global::System.Type[] { };