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 3.0.12
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  ~IntVarElement() {
30  Dispose();
31  }
32 
33  public override void Dispose() {
34  lock(this) {
35  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36  if (swigCMemOwn) {
37  swigCMemOwn = false;
39  }
40  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
41  }
42  global::System.GC.SuppressFinalize(this);
43  base.Dispose();
44  }
45  }
46 
47  public IntVarElement() : this(operations_research_constraint_solverPINVOKE.new_IntVarElement__SWIG_0(), true) {
48  }
49 
50  public IntVarElement(IntVar var) : this(operations_research_constraint_solverPINVOKE.new_IntVarElement__SWIG_1(IntVar.getCPtr(var)), true) {
51  }
52 
53  public void Reset(IntVar var) {
55  }
56 
57  public IntVarElement Clone() {
58  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarElement_Clone(swigCPtr);
59  IntVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarElement(cPtr, false);
60  return ret;
61  }
62 
63  public void Copy(IntVarElement element) {
66  }
67 
68  public IntVar Var() {
69  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarElement_Var(swigCPtr);
70  IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
71  return ret;
72  }
73 
74  public void Store() {
76  }
77 
78  public void Restore() {
80  }
81 
82  public long Min() {
84  return ret;
85  }
86 
87  public void SetMin(long m) {
89  }
90 
91  public long Max() {
93  return ret;
94  }
95 
96  public void SetMax(long m) {
98  }
99 
100  public long Value() {
102  return ret;
103  }
104 
105  public bool Bound() {
107  return ret;
108  }
109 
110  public void SetRange(long l, long u) {
112  }
113 
114  public void SetValue(long v) {
116  }
117 
118  public string ToString() {
120  return ret;
121  }
122 
123 }
124 
125 }
static long IntVarElement_Min(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarElement_SetMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static bool IntVarElement_Bound(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IntVarElement_Var(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarElement_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static string IntVarElement_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntVarElement_Max(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntVarElement_Value(global::System.Runtime.InteropServices.HandleRef 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 void IntVarElement_Restore(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarElement_Reset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntVarElement_SetMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr IntVarElement_SWIGUpcast(global::System.IntPtr jarg1)
static void delete_IntVarElement(global::System.Runtime.InteropServices.HandleRef jarg1)
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)