DotNet Reference
DotNet Reference
IntVar.cs
Go to the documentation of this file.
21 internal IntVar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntVar_SWIGUpcast(cPtr), cMemoryOwn) {
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
40 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
74 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
82 operations_research_constraint_solverPINVOKE.IntVar_RemoveValues(swigCPtr, values.Length, values );
83 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
91 operations_research_constraint_solverPINVOKE.IntVar_WhenBound__SWIG_0(swigCPtr, Demon.getCPtr(d));
95 operations_research_constraint_solverPINVOKE.IntVar_WhenBound__SWIG_1(swigCPtr, StoreVoidToVoid(closure) );
99 operations_research_constraint_solverPINVOKE.IntVar_WhenDomain__SWIG_0(swigCPtr, Demon.getCPtr(d));
103 operations_research_constraint_solverPINVOKE.IntVar_WhenDomain__SWIG_1(swigCPtr, StoreVoidToVoid(closure) );
132 operations_research_constraint_solverPINVOKE.IntVar_Accept(swigCPtr, ModelVisitor.getCPtr(visitor));
136 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVar_IsEqual(swigCPtr, constant);
142 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVar_IsDifferent(swigCPtr, constant);
148 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVar_IsGreaterOrEqual(swigCPtr, constant);
154 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVar_IsLessOrEqual(swigCPtr, constant);
165 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVar_GetDomain(swigCPtr);
166 IntVarIterator ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarIterator(cPtr, false);
171 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVar_GetHoles(swigCPtr);
172 IntVarIterator ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarIterator(cPtr, false);
static global::System.IntPtr IntVar_IsLessOrEqual(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntVar_GetHoles(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void SetValues(long[] values)
Definition: IntVar.cs:86
virtual new IntVar IsDifferent(long constant)
Definition: IntVar.cs:141
virtual new IntVar IsEqual(long constant)
Definition: IntVar.cs:135
void WhenDomain(VoidToVoid closure)
Definition: IntVar.cs:102
static void IntVar_WhenBound__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntVar_RemoveInterval(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
virtual void RemoveValues(long[] values)
Definition: IntVar.cs:81
void WhenBound(VoidToVoid closure)
Definition: IntVar.cs:94
static void IntVar_SetValues(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
Definition: Demon.cs:18
static global::System.IntPtr IntVar_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
delegate void VoidToVoid()
virtual void WhenBound(Demon d)
Definition: IntVar.cs:90
static bool Pending
Definition: Assignment.cs:11
static void IntVar_RemoveValues(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
override void Accept(ModelVisitor visitor)
Definition: IntVar.cs:131
static void IntVar_RemoveValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void delete_IntVar(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVar_Accept(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.IntVar_IsGreaterOrEqual
static global::System.IntPtr IntVar_IsGreaterOrEqual(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static bool IntVar_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntVar_Value(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IntVar_IsDifferent(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntVar_SWIGUpcast(global::System.IntPtr jarg1)
virtual bool Contains(long v)
Definition: IntVar.cs:111
static global::System.IntPtr IntVar_Var(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void RemoveInterval(long l, long u)
Definition: IntVar.cs:77
virtual void RemoveValue(long v)
Definition: IntVar.cs:72
virtual new IntVar IsLessOrEqual(long constant)
Definition: IntVar.cs:153
static void IntVar_WhenBound__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, VoidToVoid jarg2)
static int IntVar_VarType(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntVar_OldMin(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void WhenDomain(Demon d)
Definition: IntVar.cs:98
static void IntVar_WhenDomain__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int IntVar_Index(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.Exception Retrieve()
virtual new IntVar IsGreaterOrEqual(long constant)
Definition: IntVar.cs:147
static ulong IntVar_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVar_WhenDomain__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, VoidToVoid jarg2)
static long IntVar_OldMax(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool IntVar_IsVar(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IntVar_GetDomain(global::System.Runtime.InteropServices.HandleRef jarg1)