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 3.0.12
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 
30  Dispose();
31  }
32 
33  public override void Dispose() {
34  lock(this) {
35  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36  if (swigCMemOwn) {
37  swigCMemOwn = false;
39  }
40  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
41  }
42  global::System.GC.SuppressFinalize(this);
43  base.Dispose();
44  }
45  }
46 
47  public IntVarLocalSearchOperator() : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchOperator__SWIG_0(), true) {
48  SwigDirectorConnect();
49  }
50 
51  public IntVarLocalSearchOperator(IntVarVector vars, bool keep_inverse_values) : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchOperator__SWIG_1(IntVarVector.getCPtr(vars), keep_inverse_values), true) {
53  SwigDirectorConnect();
54  }
55 
56  public IntVarLocalSearchOperator(IntVarVector vars) : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchOperator__SWIG_2(IntVarVector.getCPtr(vars)), true) {
58  SwigDirectorConnect();
59  }
60 
61  protected virtual bool MakeOneNeighbor() {
63  return ret;
64  }
65 
66  private void SwigDirectorConnect() {
67  if (SwigDerivedClassHasMethod("ToString", swigMethodTypes0))
68  swigDelegate0 = new SwigDelegateIntVarLocalSearchOperator_0(SwigDirectorToString);
69  if (SwigDerivedClassHasMethod("Reset", swigMethodTypes1))
70  swigDelegate1 = new SwigDelegateIntVarLocalSearchOperator_1(SwigDirectorReset);
71  if (SwigDerivedClassHasMethod("HasFragments", swigMethodTypes2))
72  swigDelegate2 = new SwigDelegateIntVarLocalSearchOperator_2(SwigDirectorHasFragments);
73  if (SwigDerivedClassHasMethod("HoldsDelta", swigMethodTypes3))
74  swigDelegate3 = new SwigDelegateIntVarLocalSearchOperator_3(SwigDirectorHoldsDelta);
75  if (SwigDerivedClassHasMethod("IsIncremental", swigMethodTypes4))
76  swigDelegate4 = new SwigDelegateIntVarLocalSearchOperator_4(SwigDirectorIsIncremental);
77  if (SwigDerivedClassHasMethod("OnStart", swigMethodTypes5))
78  swigDelegate5 = new SwigDelegateIntVarLocalSearchOperator_5(SwigDirectorOnStart);
79  if (SwigDerivedClassHasMethod("MakeOneNeighbor", swigMethodTypes6))
80  swigDelegate6 = new SwigDelegateIntVarLocalSearchOperator_6(SwigDirectorMakeOneNeighbor);
81  operations_research_constraint_solverPINVOKE.IntVarLocalSearchOperator_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
82  }
83 
84  private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
85  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);
86  bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(IntVarLocalSearchOperator));
87  return hasDerivedMethod;
88  }
89 
90  private string SwigDirectorToString() {
91  return ToString();
92  }
93 
94  private void SwigDirectorReset() {
95  Reset();
96  }
97 
98  private bool SwigDirectorHasFragments() {
99  return HasFragments();
100  }
101 
102  private bool SwigDirectorHoldsDelta() {
103  return HoldsDelta();
104  }
105 
106  private bool SwigDirectorIsIncremental() {
107  return IsIncremental();
108  }
109 
110  private void SwigDirectorOnStart() {
111  OnStart();
112  }
113 
114  private bool SwigDirectorMakeOneNeighbor() {
115  return MakeOneNeighbor();
116  }
117 
118  public delegate string SwigDelegateIntVarLocalSearchOperator_0();
119  public delegate void SwigDelegateIntVarLocalSearchOperator_1();
120  public delegate bool SwigDelegateIntVarLocalSearchOperator_2();
121  public delegate bool SwigDelegateIntVarLocalSearchOperator_3();
122  public delegate bool SwigDelegateIntVarLocalSearchOperator_4();
123  public delegate void SwigDelegateIntVarLocalSearchOperator_5();
124  public delegate bool SwigDelegateIntVarLocalSearchOperator_6();
125 
126  private SwigDelegateIntVarLocalSearchOperator_0 swigDelegate0;
127  private SwigDelegateIntVarLocalSearchOperator_1 swigDelegate1;
128  private SwigDelegateIntVarLocalSearchOperator_2 swigDelegate2;
129  private SwigDelegateIntVarLocalSearchOperator_3 swigDelegate3;
130  private SwigDelegateIntVarLocalSearchOperator_4 swigDelegate4;
131  private SwigDelegateIntVarLocalSearchOperator_5 swigDelegate5;
132  private SwigDelegateIntVarLocalSearchOperator_6 swigDelegate6;
133 
134  private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
135  private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
136  private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
137  private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
138  private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
139  private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
140  private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
141 }
142 
143 }
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()
override void Dispose()
IntVarLocalSearchOperator(IntVarVector vars, bool keep_inverse_values)
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:51
virtual bool HasFragments()
delegate void SwigDelegateIntVarLocalSearchOperator_5()
static global::System.Exception Retrieve()
delegate bool SwigDelegateIntVarLocalSearchOperator_6()
virtual bool MakeOneNeighbor()
override bool HoldsDelta()