DotNet Reference

.Net Reference

IntVarElement.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 
13 using System;
14 using System.Runtime.InteropServices;
15 using System.Collections;
16 using System.Collections.Generic;
17 
18 public partial class IntVarElement : AssignmentElement {
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20 
21  internal IntVarElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntVarElement_SWIGUpcast(cPtr), cMemoryOwn) {
22  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23  }
24 
25  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntVarElement 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 IntVarElement() : this(operations_research_constraint_solverPINVOKE.new_IntVarElement__SWIG_0(), true) {
43  }
44 
45  public IntVarElement(IntVar var) : this(operations_research_constraint_solverPINVOKE.new_IntVarElement__SWIG_1(IntVar.getCPtr(var)), true) {
46  }
47 
48  public void Reset(IntVar var) {
50  }
51 
52  public IntVarElement Clone() {
54  IntVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarElement(cPtr, false);
55  return ret;
56  }
57 
58  public void Copy(IntVarElement element) {
61  }
62 
63  public IntVar Var() {
65  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
66  return ret;
67  }
68 
69  public void Store() {
71  }
72 
73  public void Restore() {
75  }
76 
77  public long Min() {
79  return ret;
80  }
81 
82  public void SetMin(long m) {
84  }
85 
86  public long Max() {
88  return ret;
89  }
90 
91  public void SetMax(long m) {
93  }
94 
95  public long Value() {
97  return ret;
98  }
99 
100  public bool Bound() {
102  return ret;
103  }
104 
105  public void SetRange(long l, long u) {
107  }
108 
109  public void SetValue(long v) {
111  }
112 
113  public string ToString() {
115  return ret;
116  }
117 
118 }
119 
120 }
static bool IntVarElement_Bound(global::System.Runtime.InteropServices.HandleRef jarg1)
Definition: IntVar.cs:18
static long IntVarElement_Max(global::System.Runtime.InteropServices.HandleRef jarg1)
void Restore()
IntVarElement Clone()
bool Bound()
static void IntVarElement_SetMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
void Store()
void SetMin(long m)
long Value()
void Copy(IntVarElement element)
bool swigCMemOwn
static bool Pending
void SetRange(long l, long u)
void SetValue(long v)
void SetMax(long m)
static void IntVarElement_SetMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntVarElement_Value(global::System.Runtime.InteropServices.HandleRef jarg1)
string ToString()
static void IntVarElement_Store(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarElement_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string IntVarElement_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
using System
Definition: Program.cs:14
static void IntVarElement_Restore(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_IntVarElement(global::System.Runtime.InteropServices.HandleRef jarg1)
override void Dispose(bool disposing)
IntVarElement(IntVar var)
static void IntVarElement_Reset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
long Min()
static long IntVarElement_Min(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVar Var()
static global::System.IntPtr IntVarElement_Var(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarElement_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
void Reset(IntVar var)
IntVarElement()
static global::System.IntPtr IntVarElement_SWIGUpcast(global::System.IntPtr jarg1)
static global::System.IntPtr IntVarElement_Clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarElement_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static global::System.Exception Retrieve()
long Max()