DotNet Reference
.Net Reference
IntExpr.cs
Go to the documentation of this file.
21 internal IntExpr(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntExpr_SWIGUpcast(cPtr), cMemoryOwn) {
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);
58 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
68 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
77 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
82 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
102 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_VarWithName(swigCPtr, name);
104 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
109 operations_research_constraint_solverPINVOKE.IntExpr_WhenRange__SWIG_0(swigCPtr, Demon.getCPtr(d));
113 operations_research_constraint_solverPINVOKE.IntExpr_WhenRange__SWIG_1(swigCPtr, StoreVoidToVoid(closure) );
117 operations_research_constraint_solverPINVOKE.IntExpr_Accept(swigCPtr, ModelVisitor.getCPtr(visitor));
121 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_MapTo(swigCPtr, IntVarVector.getCPtr(vars));
123 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
128 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IndexOf__SWIG_0(swigCPtr, vars.Length, vars );
134 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IndexOf__SWIG_1(swigCPtr, IntVarVector.getCPtr(vars));
136 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
141 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsEqual__SWIG_0(swigCPtr, value);
147 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsDifferent__SWIG_0(swigCPtr, value);
153 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsGreater__SWIG_0(swigCPtr, value);
159 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsGreaterOrEqual__SWIG_0(swigCPtr, value);
165 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsLess__SWIG_0(swigCPtr, value);
171 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsLessOrEqual__SWIG_0(swigCPtr, value);
177 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsMember__SWIG_0(swigCPtr, values.Length, values );
183 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsMember__SWIG_1(swigCPtr, values.Length, values );
189 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_Member__SWIG_0(swigCPtr, values.Length, values );
195 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_Member__SWIG_1(swigCPtr, values.Length, values );
201 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsEqual__SWIG_1(swigCPtr, IntExpr.getCPtr(other));
207 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsDifferent__SWIG_1(swigCPtr, IntExpr.getCPtr(other));
213 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsGreater__SWIG_1(swigCPtr, IntExpr.getCPtr(other));
219 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsGreaterOrEqual__SWIG_1(swigCPtr, IntExpr.getCPtr(other));
225 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsLess__SWIG_1(swigCPtr, IntExpr.getCPtr(other));
231 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_IsLessOrEqual__SWIG_1(swigCPtr, IntExpr.getCPtr(other));
237 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_Minimize(swigCPtr, step);
243 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntExpr_Maximize(swigCPtr, step);
OptimizeVar Maximize(long step)
Definition: IntExpr.cs:242
static global::System.IntPtr IntExpr_IsGreaterOrEqual__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntExpr_Member__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
static global::System.IntPtr IntExpr_IsGreaterOrEqual__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void SetRange(long l, long u)
Definition: IntExpr.cs:75
void WhenRange(VoidToVoid closure)
Definition: IntExpr.cs:112
static void delete_IntExpr(global::System.Runtime.InteropServices.HandleRef jarg1)
IntExpr IndexOf(long[] vars)
Definition: IntExpr.cs:127
virtual void Accept(ModelVisitor visitor)
Definition: IntExpr.cs:116
virtual void Range(out int l, out int u)
Definition: IntExpr.cs:71
static global::System.IntPtr IntExpr_Member__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
IntVar IsGreater(long value)
Definition: IntExpr.cs:152
Definition: Demon.cs:18
IntVar IsLessOrEqual(IntExpr other)
Definition: IntExpr.cs:230
Constraint MapTo(IntVarVector vars)
Definition: IntExpr.cs:120
IntVar IsDifferent(IntExpr other)
Definition: IntExpr.cs:206
static global::System.IntPtr IntExpr_IsLess__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
delegate void VoidToVoid()
static bool Pending
static global::System.IntPtr IntExpr_Var(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntExpr_Min(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVar IsGreaterOrEqual(IntExpr other)
Definition: IntExpr.cs:218
static void IntExpr_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntExpr_Maximize(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
IntVar IsEqual(IntExpr other)
Definition: IntExpr.cs:200
static global::System.IntPtr IntExpr_VarWithName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
override void Dispose(bool disposing)
Definition: IntExpr.cs:29
static global::System.IntPtr IntExpr_IsGreater__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntExpr_IsGreater__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntExpr_WhenRange__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, VoidToVoid jarg2)
IntVar IsGreaterOrEqual(long value)
Definition: IntExpr.cs:158
IntVar IsMember(long[] values)
Definition: IntExpr.cs:176
IntExpr IndexOf(IntVarVector vars)
Definition: IntExpr.cs:133
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.IntExpr_IsEqual__SWIG_1
static global::System.IntPtr IntExpr_IsEqual__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr IntExpr_IsLessOrEqual__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr IntExpr_IsMember__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static void IntExpr_SetMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static bool IntExpr_IsVar(global::System.Runtime.InteropServices.HandleRef jarg1)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.IntExpr_IsEqual__SWIG_0
static global::System.IntPtr IntExpr_IsEqual__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntExpr_IsDifferent__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.IntExpr_IndexOf__SWIG_1
static global::System.IntPtr IntExpr_IndexOf__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void WhenRange(Demon d)
Definition: IntExpr.cs:108
OptimizeVar Minimize(long step)
Definition: IntExpr.cs:236
static global::System.IntPtr IntExpr_IsMember__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
static global::System.IntPtr IntExpr_MapTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntExpr_Accept(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
IntVar IsLess(IntExpr other)
Definition: IntExpr.cs:224
IntVar IsLessOrEqual(long value)
Definition: IntExpr.cs:170
static global::System.IntPtr IntExpr_IsLess__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
virtual void SetValue(long v)
Definition: IntExpr.cs:80
IntVar IsMember(int[] values)
Definition: IntExpr.cs:182
IntVar VarWithName(string name)
Definition: IntExpr.cs:101
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.IntExpr_IndexOf__SWIG_0
static global::System.IntPtr IntExpr_IndexOf__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static void IntExpr_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static bool IntExpr_Bound(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntExpr_WhenRange__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntExpr_Range(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3)
IntVar IsDifferent(long value)
Definition: IntExpr.cs:146
IntVar IsGreater(IntExpr other)
Definition: IntExpr.cs:212
Constraint Member(int[] values)
Definition: IntExpr.cs:194
static long IntExpr_Max(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.Exception Retrieve()
static void IntExpr_SetMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntExpr_IsDifferent__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr IntExpr_Minimize(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntExpr_IsLessOrEqual__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
Constraint Member(long[] values)
Definition: IntExpr.cs:188