DotNet Reference

.Net Reference

IntVarLocalSearchOperator.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 4.0.2
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
12 
13 using System;
14 using System.Runtime.InteropServices;
15 using System.Collections;
16 using System.Collections.Generic;
17 
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20 
22  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23  }
24 
25  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntVarLocalSearchOperator obj) {
26  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27  }
28 
29  protected override void Dispose(bool disposing) {
30  lock(this) {
31  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32  if (swigCMemOwn) {
33  swigCMemOwn = false;
35  }
36  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37  }
38  base.Dispose(disposing);
39  }
40  }
41 
42  public IntVarLocalSearchOperator() : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchOperator__SWIG_0(), true) {
43  SwigDirectorConnect();
44  }
45 
46  public IntVarLocalSearchOperator(IntVarVector vars, bool keep_inverse_values) : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchOperator__SWIG_1(IntVarVector.getCPtr(vars), keep_inverse_values), true) {
48  SwigDirectorConnect();
49  }
50 
51  public IntVarLocalSearchOperator(IntVarVector vars) : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchOperator__SWIG_2(IntVarVector.getCPtr(vars)), true) {
53  SwigDirectorConnect();
54  }
55 
56  protected virtual bool MakeOneNeighbor() {
58  return ret;
59  }
60 
61  private void SwigDirectorConnect() {
62  if (SwigDerivedClassHasMethod("ToString", swigMethodTypes0))
63  swigDelegate0 = new SwigDelegateIntVarLocalSearchOperator_0(SwigDirectorMethodToString);
64  if (SwigDerivedClassHasMethod("Reset", swigMethodTypes1))
65  swigDelegate1 = new SwigDelegateIntVarLocalSearchOperator_1(SwigDirectorMethodReset);
66  if (SwigDerivedClassHasMethod("HasFragments", swigMethodTypes2))
67  swigDelegate2 = new SwigDelegateIntVarLocalSearchOperator_2(SwigDirectorMethodHasFragments);
68  if (SwigDerivedClassHasMethod("HoldsDelta", swigMethodTypes3))
69  swigDelegate3 = new SwigDelegateIntVarLocalSearchOperator_3(SwigDirectorMethodHoldsDelta);
70  if (SwigDerivedClassHasMethod("IsIncremental", swigMethodTypes4))
71  swigDelegate4 = new SwigDelegateIntVarLocalSearchOperator_4(SwigDirectorMethodIsIncremental);
72  if (SwigDerivedClassHasMethod("OnStart", swigMethodTypes5))
73  swigDelegate5 = new SwigDelegateIntVarLocalSearchOperator_5(SwigDirectorMethodOnStart);
74  if (SwigDerivedClassHasMethod("MakeOneNeighbor", swigMethodTypes6))
75  swigDelegate6 = new SwigDelegateIntVarLocalSearchOperator_6(SwigDirectorMethodMakeOneNeighbor);
76  operations_research_constraint_solverPINVOKE.IntVarLocalSearchOperator_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
77  }
78 
79  private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
80  global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
81  bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IntVarLocalSearchOperator));
82  return hasDerivedMethod;
83  }
84 
85  private string SwigDirectorMethodToString() {
86  return ToString();
87  }
88 
89  private void SwigDirectorMethodReset() {
90  Reset();
91  }
92 
93  private bool SwigDirectorMethodHasFragments() {
94  return HasFragments();
95  }
96 
97  private bool SwigDirectorMethodHoldsDelta() {
98  return HoldsDelta();
99  }
100 
101  private bool SwigDirectorMethodIsIncremental() {
102  return IsIncremental();
103  }
104 
105  private void SwigDirectorMethodOnStart() {
106  OnStart();
107  }
108 
109  private bool SwigDirectorMethodMakeOneNeighbor() {
110  return MakeOneNeighbor();
111  }
112 
113  public delegate string SwigDelegateIntVarLocalSearchOperator_0();
120 
121  private SwigDelegateIntVarLocalSearchOperator_0 swigDelegate0;
122  private SwigDelegateIntVarLocalSearchOperator_1 swigDelegate1;
123  private SwigDelegateIntVarLocalSearchOperator_2 swigDelegate2;
124  private SwigDelegateIntVarLocalSearchOperator_3 swigDelegate3;
125  private SwigDelegateIntVarLocalSearchOperator_4 swigDelegate4;
126  private SwigDelegateIntVarLocalSearchOperator_5 swigDelegate5;
127  private SwigDelegateIntVarLocalSearchOperator_6 swigDelegate6;
128 
129  private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
130  private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
131  private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
132  private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
133  private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
134  private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
135  private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
136 }
137 
138 }
delegate bool SwigDelegateIntVarLocalSearchOperator_4()
IntVarLocalSearchOperator(IntVarVector vars)
static void delete_IntVarLocalSearchOperator(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate bool SwigDelegateIntVarLocalSearchOperator_2()
static global::System.IntPtr IntVarLocalSearchOperator_SWIGUpcast(global::System.IntPtr jarg1)
IntVarLocalSearchOperator()
static bool Pending
delegate string SwigDelegateIntVarLocalSearchOperator_0()
IntVarLocalSearchOperator(IntVarVector vars, bool keep_inverse_values)
delegate void SwigDelegateIntVarLocalSearchOperator_1()
using System
Definition: Program.cs:14
virtual bool IsIncremental()
virtual void Reset()
bool swigCMemOwn
Definition: BaseObject.cs:20
static void IntVarLocalSearchOperator_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, IntVarLocalSearchOperator.SwigDelegateIntVarLocalSearchOperator_0 delegate0, IntVarLocalSearchOperator.SwigDelegateIntVarLocalSearchOperator_1 delegate1, IntVarLocalSearchOperator.SwigDelegateIntVarLocalSearchOperator_2 delegate2, IntVarLocalSearchOperator.SwigDelegateIntVarLocalSearchOperator_3 delegate3, IntVarLocalSearchOperator.SwigDelegateIntVarLocalSearchOperator_4 delegate4, IntVarLocalSearchOperator.SwigDelegateIntVarLocalSearchOperator_5 delegate5, IntVarLocalSearchOperator.SwigDelegateIntVarLocalSearchOperator_6 delegate6)
static bool IntVarLocalSearchOperator_MakeOneNeighborSwigExplicitIntVarLocalSearchOperator(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool IntVarLocalSearchOperator_MakeOneNeighbor(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate bool SwigDelegateIntVarLocalSearchOperator_3()
virtual void OnStart()
virtual string ToString()
Definition: BaseObject.cs:55
virtual bool HasFragments()
delegate void SwigDelegateIntVarLocalSearchOperator_5()
static global::System.Exception Retrieve()
delegate bool SwigDelegateIntVarLocalSearchOperator_6()
virtual bool MakeOneNeighbor()
override void Dispose(bool disposing)
override bool HoldsDelta()