DotNet Reference

.Net Reference

BooleanVar.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.2
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
13using System;
14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
17
18public partial class BooleanVar : IntVar {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20
21 internal BooleanVar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.BooleanVar_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BooleanVar 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 static int kUnboundBooleanVarValue {
43 get {
45 return ret;
46 }
47 }
48
49 public override long Min() {
51 return ret;
52 }
53
54 public override void SetMin(long m) {
57 }
58
59 public override long Max() {
61 return ret;
62 }
63
64 public override void SetMax(long m) {
67 }
68
69 public override void SetRange(long mi, long ma) {
72 }
73
74 public override bool Bound() {
76 return ret;
77 }
78
79 public override long Value() {
81 return ret;
82 }
83
84 public override void RemoveValue(long v) {
87 }
88
89 public override void RemoveInterval(long l, long u) {
91 }
92
93 public override void WhenBound(Demon d) {
95 }
96
97 public override void WhenRange(Demon d) {
99 }
100
101 public override void WhenDomain(Demon d) {
103 }
104
105 public override ulong Size() {
107 return ret;
108 }
109
110 public override bool Contains(long v) {
112 return ret;
113 }
114
115 public override string ToString() {
117 return ret;
118 }
119
120 public override int VarType() {
122 return ret;
123 }
124
125 public override IntVar IsEqual(long constant) {
126 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.BooleanVar_IsEqual(swigCPtr, constant);
127 IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
128 return ret;
129 }
130
131 public override IntVar IsDifferent(long constant) {
132 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.BooleanVar_IsDifferent(swigCPtr, constant);
133 IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
134 return ret;
135 }
136
137 public override IntVar IsGreaterOrEqual(long constant) {
138 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.BooleanVar_IsGreaterOrEqual(swigCPtr, constant);
139 IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
140 return ret;
141 }
142
143 public override IntVar IsLessOrEqual(long constant) {
144 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.BooleanVar_IsLessOrEqual(swigCPtr, constant);
145 IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
146 return ret;
147 }
148
149 public virtual void RestoreValue() {
151 }
152
153 public override string BaseName() {
155 return ret;
156 }
157
158 public int RawValue() {
160 return ret;
161 }
162
163}
164
165}
override IntVar IsLessOrEqual(long constant)
Definition: BooleanVar.cs:143
override void RemoveInterval(long l, long u)
Definition: BooleanVar.cs:89
override IntVar IsEqual(long constant)
Definition: BooleanVar.cs:125
override IntVar IsDifferent(long constant)
Definition: BooleanVar.cs:131
override void Dispose(bool disposing)
Definition: BooleanVar.cs:29
override void SetRange(long mi, long ma)
Definition: BooleanVar.cs:69
override IntVar IsGreaterOrEqual(long constant)
Definition: BooleanVar.cs:137
static global::System.IntPtr BooleanVar_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void BooleanVar_SetMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void BooleanVar_RemoveInterval(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static void BooleanVar_WhenRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr BooleanVar_IsLessOrEqual(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr BooleanVar_IsDifferent(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void BooleanVar_WhenBound(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_BooleanVar(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BooleanVar_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static bool BooleanVar_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr BooleanVar_IsGreaterOrEqual(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long BooleanVar_Min(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BooleanVar_RemoveValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void BooleanVar_WhenDomain(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr BooleanVar_SWIGUpcast(global::System.IntPtr jarg1)
static string BooleanVar_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BooleanVar_SetMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static ulong BooleanVar_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BooleanVar_RestoreValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static long BooleanVar_Max(global::System.Runtime.InteropServices.HandleRef jarg1)
static int BooleanVar_VarType(global::System.Runtime.InteropServices.HandleRef jarg1)
static string BooleanVar_BaseName(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool BooleanVar_Bound(global::System.Runtime.InteropServices.HandleRef jarg1)
static int BooleanVar_RawValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static long BooleanVar_Value(global::System.Runtime.InteropServices.HandleRef jarg1)