DotNet Reference

DotNet 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.1
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 
21  internal IntVarLocalSearchOperator(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntVarLocalSearchOperator_SWIGUpcast(cPtr), cMemoryOwn) {
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) : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchOperator__SWIG_1(IntVarVector.getCPtr(vars)), true) {
48  SwigDirectorConnect();
49  }
50 
51  protected virtual bool MakeOneNeighbor() {
53  return ret;
54  }
55 
56  private void SwigDirectorConnect() {
57  if (SwigDerivedClassHasMethod("ToString", swigMethodTypes0))
58  swigDelegate0 = new SwigDelegateIntVarLocalSearchOperator_0(SwigDirectorMethodToString);
59  if (SwigDerivedClassHasMethod("Reset", swigMethodTypes1))
60  swigDelegate1 = new SwigDelegateIntVarLocalSearchOperator_1(SwigDirectorMethodReset);
61  if (SwigDerivedClassHasMethod("HasFragments", swigMethodTypes2))
62  swigDelegate2 = new SwigDelegateIntVarLocalSearchOperator_2(SwigDirectorMethodHasFragments);
63  if (SwigDerivedClassHasMethod("HoldsDelta", swigMethodTypes3))
64  swigDelegate3 = new SwigDelegateIntVarLocalSearchOperator_3(SwigDirectorMethodHoldsDelta);
65  if (SwigDerivedClassHasMethod("IsIncremental", swigMethodTypes4))
66  swigDelegate4 = new SwigDelegateIntVarLocalSearchOperator_4(SwigDirectorMethodIsIncremental);
67  if (SwigDerivedClassHasMethod("OnStart", swigMethodTypes5))
68  swigDelegate5 = new SwigDelegateIntVarLocalSearchOperator_5(SwigDirectorMethodOnStart);
69  if (SwigDerivedClassHasMethod("MakeOneNeighbor", swigMethodTypes6))
70  swigDelegate6 = new SwigDelegateIntVarLocalSearchOperator_6(SwigDirectorMethodMakeOneNeighbor);
71  operations_research_constraint_solverPINVOKE.IntVarLocalSearchOperator_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
72  }
73 
74  private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
75  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);
76  bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IntVarLocalSearchOperator));
77  return hasDerivedMethod;
78  }
79 
80  private string SwigDirectorMethodToString() {
81  return ToString();
82  }
83 
84  private void SwigDirectorMethodReset() {
85  Reset();
86  }
87 
88  private bool SwigDirectorMethodHasFragments() {
89  return HasFragments();
90  }
91 
92  private bool SwigDirectorMethodHoldsDelta() {
93  return HoldsDelta();
94  }
95 
96  private bool SwigDirectorMethodIsIncremental() {
97  return IsIncremental();
98  }
99 
100  private void SwigDirectorMethodOnStart() {
101  OnStart();
102  }
103 
104  private bool SwigDirectorMethodMakeOneNeighbor() {
105  return MakeOneNeighbor();
106  }
107 
108  public delegate string SwigDelegateIntVarLocalSearchOperator_0();
109  public delegate void SwigDelegateIntVarLocalSearchOperator_1();
110  public delegate bool SwigDelegateIntVarLocalSearchOperator_2();
111  public delegate bool SwigDelegateIntVarLocalSearchOperator_3();
112  public delegate bool SwigDelegateIntVarLocalSearchOperator_4();
113  public delegate void SwigDelegateIntVarLocalSearchOperator_5();
114  public delegate bool SwigDelegateIntVarLocalSearchOperator_6();
115 
116  private SwigDelegateIntVarLocalSearchOperator_0 swigDelegate0;
117  private SwigDelegateIntVarLocalSearchOperator_1 swigDelegate1;
118  private SwigDelegateIntVarLocalSearchOperator_2 swigDelegate2;
119  private SwigDelegateIntVarLocalSearchOperator_3 swigDelegate3;
120  private SwigDelegateIntVarLocalSearchOperator_4 swigDelegate4;
121  private SwigDelegateIntVarLocalSearchOperator_5 swigDelegate5;
122  private SwigDelegateIntVarLocalSearchOperator_6 swigDelegate6;
123 
124  private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
125  private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
126  private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
127  private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
128  private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
129  private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
130  private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
131 }
132 
133 }
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
Definition: Assignment.cs:11
Definition: IntVarVector.cs:18
delegate string SwigDelegateIntVarLocalSearchOperator_0()
delegate void SwigDelegateIntVarLocalSearchOperator_1()
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()