22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
BaseLns 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(BaseLns 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 BaseLns(IntVarVector vars) : this(operations_research_constraint_solverPINVOKE.new_BaseLns(IntVarVector.getCPtr(vars)), true) {
56 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending)
throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
57 SwigDirectorConnect();
83 private void SwigDirectorConnect() {
84 if (SwigDerivedClassHasMethod(
"ToString", swigMethodTypes0))
86 if (SwigDerivedClassHasMethod(
"Start", swigMethodTypes1))
88 if (SwigDerivedClassHasMethod(
"Reset", swigMethodTypes2))
90 if (SwigDerivedClassHasMethod(
"HasFragments", swigMethodTypes3))
92 if (SwigDerivedClassHasMethod(
"HoldsDelta", swigMethodTypes4))
94 if (SwigDerivedClassHasMethod(
"IsIncremental", swigMethodTypes5))
96 if (SwigDerivedClassHasMethod(
"InitFragments", swigMethodTypes6))
98 if (SwigDerivedClassHasMethod(
"NextFragment", swigMethodTypes7))
103 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
104 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
105 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
106 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
107 if (methodInfo.DeclaringType ==
null)
110 if (methodInfo.Name != methodName)
113 var parameters = methodInfo.GetParameters();
114 if (parameters.Length != methodTypes.Length)
117 bool parametersMatch =
true;
118 for (var i = 0; i < parameters.Length; i++) {
119 if (parameters[i].ParameterType != methodTypes[i]) {
120 parametersMatch =
false;
125 if (!parametersMatch)
128 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(BaseLns))) &&
129 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
137 private string SwigDirectorMethodToString() {
141 private void SwigDirectorMethodStart(global::System.IntPtr assignment) {
142 Start((assignment == global::System.IntPtr.Zero) ?
null :
new Assignment(assignment,
false));
145 private void SwigDirectorMethodReset() {
149 private bool SwigDirectorMethodHasFragments() {
153 private bool SwigDirectorMethodHoldsDelta() {
157 private bool SwigDirectorMethodIsIncremental() {
161 private void SwigDirectorMethodInitFragments() {
165 private bool SwigDirectorMethodNextFragment() {
187 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };
188 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { typeof(
Assignment) };
189 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { };
190 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
191 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { };
192 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { };
193 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { };
194 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { };