DotNet Reference
DotNet Reference
IntVarLocalSearchFilter.cs
Go to the documentation of this file.
21 internal IntVarLocalSearchFilter(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_SWIGUpcast(cPtr), cMemoryOwn) {
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntVarLocalSearchFilter obj) {
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
51 public IntVarLocalSearchFilter(IntVarVector vars) : this(operations_research_constraint_solverPINVOKE.new_IntVarLocalSearchFilter(IntVarVector.getCPtr(vars)), true) {
52 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
57 operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_Synchronize(swigCPtr, Assignment.getCPtr(assignment), Assignment.getCPtr(delta));
61 operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_AddVars(swigCPtr, IntVarVector.getCPtr(vars));
62 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
71 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_Var(swigCPtr, index);
77 long ret = operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_Value(swigCPtr, index);
82 if (SwigDerivedClassHasMethod("OnSynchronize", swigMethodTypes7)) operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_OnSynchronizeSwigExplicitIntVarLocalSearchFilter(swigCPtr, Assignment.getCPtr(delta)); else operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_OnSynchronize(swigCPtr, Assignment.getCPtr(delta));
86 int ret = operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_Index(swigCPtr, IntVar.getCPtr(var));
102 swigDelegate5 = new SwigDelegateIntVarLocalSearchFilter_5(SwigDirectorMethodGetSynchronizedObjectiveValue);
104 swigDelegate6 = new SwigDelegateIntVarLocalSearchFilter_6(SwigDirectorMethodGetAcceptedObjectiveValue);
107 operations_research_constraint_solverPINVOKE.IntVarLocalSearchFilter_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7);
111 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);
120 private void SwigDirectorMethodRelax(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
121 Relax((delta == global::System.IntPtr.Zero) ? null : new Assignment(delta, false), (deltadelta == global::System.IntPtr.Zero) ? null : new Assignment(deltadelta, false));
124 private bool SwigDirectorMethodAccept(global::System.IntPtr delta, global::System.IntPtr deltadelta, long objective_min, long objective_max) {
125 return Accept((delta == global::System.IntPtr.Zero) ? null : new Assignment(delta, false), (deltadelta == global::System.IntPtr.Zero) ? null : new Assignment(deltadelta, false), objective_min, objective_max);
149 public delegate void SwigDelegateIntVarLocalSearchFilter_1(global::System.IntPtr delta, global::System.IntPtr deltadelta);
150 public delegate bool SwigDelegateIntVarLocalSearchFilter_2(global::System.IntPtr delta, global::System.IntPtr deltadelta, long objective_min, long objective_max);
167 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
168 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(Assignment), typeof(Assignment), typeof(long), typeof(long) };
delegate void SwigDelegateIntVarLocalSearchFilter_1(global::System.IntPtr delta, global::System.IntPtr deltadelta)
static void IntVarLocalSearchFilter_OnSynchronize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
delegate void SwigDelegateIntVarLocalSearchFilter_4()
virtual void Revert()
Definition: LocalSearchFilter.cs:60
static bool Pending
virtual long GetSynchronizedObjectiveValue()
Definition: LocalSearchFilter.cs:64
delegate void SwigDelegateIntVarLocalSearchFilter_7(global::System.IntPtr delta)
virtual void OnSynchronize(Assignment delta)
Definition: IntVarLocalSearchFilter.cs:81
Definition: Assignment.cs:11
static void IntVarLocalSearchFilter_OnSynchronizeSwigExplicitIntVarLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
delegate string SwigDelegateIntVarLocalSearchFilter_0()
virtual void Relax(Assignment delta, Assignment deltadelta)
Definition: LocalSearchFilter.cs:42
static void IntVarLocalSearchFilter_Synchronize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void IntVarLocalSearchFilter_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_0 delegate0, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_1 delegate1, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_2 delegate2, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_3 delegate3, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_4 delegate4, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_5 delegate5, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_6 delegate6, IntVarLocalSearchFilter.SwigDelegateIntVarLocalSearchFilter_7 delegate7)
static void IntVarLocalSearchFilter_AddVars(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
int Size()
Definition: IntVarLocalSearchFilter.cs:65
static long IntVarLocalSearchFilter_Value(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
IntVar Var(int index)
Definition: IntVarLocalSearchFilter.cs:70
virtual long GetAcceptedObjectiveValue()
Definition: LocalSearchFilter.cs:69
delegate long SwigDelegateIntVarLocalSearchFilter_5()
static global::System.IntPtr IntVarLocalSearchFilter_Var(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
delegate bool SwigDelegateIntVarLocalSearchFilter_2(global::System.IntPtr delta, global::System.IntPtr deltadelta, long objective_min, long objective_max)
virtual bool Accept(Assignment delta, Assignment deltadelta, long objective_min, long objective_max)
Definition: LocalSearchFilter.cs:46
static int IntVarLocalSearchFilter_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
long Value(int index)
Definition: IntVarLocalSearchFilter.cs:76
static void delete_IntVarLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1)
override void Synchronize(Assignment assignment, Assignment delta)
Definition: IntVarLocalSearchFilter.cs:56
delegate void LongToVoid(long t)
void AddVars(IntVarVector vars)
Definition: IntVarLocalSearchFilter.cs:60
virtual string ToString()
Definition: BaseObject.cs:55
virtual bool IsIncremental()
Definition: LocalSearchFilter.cs:51
static global::System.Exception Retrieve()
static int IntVarLocalSearchFilter_Index(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
int Index(IntVar var)
Definition: IntVarLocalSearchFilter.cs:85
IntVarLocalSearchFilter(IntVarVector vars)
Definition: IntVarLocalSearchFilter.cs:51
delegate bool SwigDelegateIntVarLocalSearchFilter_3()
override void Dispose(bool disposing)
Definition: IntVarLocalSearchFilter.cs:29
static global::System.IntPtr IntVarLocalSearchFilter_SWIGUpcast(global::System.IntPtr jarg1)
delegate long SwigDelegateIntVarLocalSearchFilter_6()