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();
68 public virtual void Reset() {
82 private void SwigDirectorConnect() {
83 if (SwigDerivedClassHasMethod(
"ToString", swigMethodTypes0))
85 if (SwigDerivedClassHasMethod(
"MakeNextNeighbor", swigMethodTypes1))
87 if (SwigDerivedClassHasMethod(
"Start", swigMethodTypes2))
89 if (SwigDerivedClassHasMethod(
"Reset", swigMethodTypes3))
91 if (SwigDerivedClassHasMethod(
"HasFragments", swigMethodTypes4))
93 if (SwigDerivedClassHasMethod(
"HoldsDelta", swigMethodTypes5))
98 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
99 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
100 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
101 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
102 if (methodInfo.DeclaringType ==
null)
105 if (methodInfo.Name != methodName)
108 var parameters = methodInfo.GetParameters();
109 if (parameters.Length != methodTypes.Length)
112 bool parametersMatch =
true;
113 for (var i = 0; i < parameters.Length; i++) {
114 if (parameters[i].ParameterType != methodTypes[i]) {
115 parametersMatch =
false;
120 if (!parametersMatch)
123 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(
LocalSearchOperator))) &&
124 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
132 private string SwigDirectorMethodToString() {
136 private bool SwigDirectorMethodMakeNextNeighbor(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
137 return MakeNextNeighbor((delta == global::System.IntPtr.Zero) ?
null :
new Assignment(delta,
false), (deltadelta == global::System.IntPtr.Zero) ?
null :
new Assignment(deltadelta,
false));
140 private void SwigDirectorMethodStart(global::System.IntPtr assignment) {
141 Start((assignment == global::System.IntPtr.Zero) ?
null :
new Assignment(assignment,
false));
144 private void SwigDirectorMethodReset() {
148 private bool SwigDirectorMethodHasFragments() {
152 private bool SwigDirectorMethodHoldsDelta() {
170 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };
171 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { typeof(
Assignment), typeof(
Assignment) };
172 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(Assignment) };
173 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
174 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { };
175 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { };