22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
LocalSearchOperator 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(
LocalSearchOperator 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 LocalSearchOperator() : this(operations_research_constraint_solverPINVOKE.new_LocalSearchOperator(), true) {
56 SwigDirectorConnect();
72 public virtual void Reset() {
86 private void SwigDirectorConnect() {
87 if (SwigDerivedClassHasMethod(
"ToString", swigMethodTypes0))
89 if (SwigDerivedClassHasMethod(
"MakeNextNeighbor", swigMethodTypes1))
91 if (SwigDerivedClassHasMethod(
"EnterSearch", swigMethodTypes2))
93 if (SwigDerivedClassHasMethod(
"Start", swigMethodTypes3))
95 if (SwigDerivedClassHasMethod(
"Reset", swigMethodTypes4))
97 if (SwigDerivedClassHasMethod(
"HasFragments", swigMethodTypes5))
99 if (SwigDerivedClassHasMethod(
"HoldsDelta", swigMethodTypes6))
104 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
105 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
106 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
107 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
108 if (methodInfo.DeclaringType ==
null)
111 if (methodInfo.Name != methodName)
114 var parameters = methodInfo.GetParameters();
115 if (parameters.Length != methodTypes.Length)
118 bool parametersMatch =
true;
119 for (var i = 0; i < parameters.Length; i++) {
120 if (parameters[i].ParameterType != methodTypes[i]) {
121 parametersMatch =
false;
126 if (!parametersMatch)
129 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(
LocalSearchOperator))) &&
130 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
138 private string SwigDirectorMethodToString() {
142 private bool SwigDirectorMethodMakeNextNeighbor(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
143 return MakeNextNeighbor((delta == global::System.IntPtr.Zero) ?
null :
new Assignment(delta,
false), (deltadelta == global::System.IntPtr.Zero) ?
null :
new Assignment(deltadelta,
false));
146 private void SwigDirectorMethodEnterSearch() {
150 private void SwigDirectorMethodStart(global::System.IntPtr assignment) {
151 Start((assignment == global::System.IntPtr.Zero) ?
null :
new Assignment(assignment,
false));
154 private void SwigDirectorMethodReset() {
158 private bool SwigDirectorMethodHasFragments() {
162 private bool SwigDirectorMethodHoldsDelta() {
182 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };
183 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { typeof(
Assignment), typeof(
Assignment) };
184 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { };
185 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { typeof(Assignment) };
186 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { };
187 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { };
188 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { };