DotNet Reference

.Net Reference

AssignmentIntContainer.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 AssignmentIntContainer : global::System.IDisposable {
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20  protected bool swigCMemOwn;
21 
22  internal AssignmentIntContainer(global::System.IntPtr cPtr, bool cMemoryOwn) {
23  swigCMemOwn = cMemoryOwn;
24  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
25  }
26 
27  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(AssignmentIntContainer obj) {
28  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
29  }
30 
32  Dispose(false);
33  }
34 
35  public void Dispose() {
36  Dispose(true);
37  global::System.GC.SuppressFinalize(this);
38  }
39 
40  protected virtual void Dispose(bool disposing) {
41  lock(this) {
42  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43  if (swigCMemOwn) {
44  swigCMemOwn = false;
46  }
47  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48  }
49  }
50  }
51 
52  public AssignmentIntContainer() : this(operations_research_constraint_solverPINVOKE.new_AssignmentIntContainer(), true) {
53  }
54 
55  public IntVarElement Add(IntVar var) {
57  IntVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarElement(cPtr, false);
58  return ret;
59  }
60 
63  IntVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarElement(cPtr, false);
64  return ret;
65  }
66 
67  public IntVarElement AddAtPosition(IntVar var, int position) {
69  IntVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarElement(cPtr, false);
70  return ret;
71  }
72 
73  public void Clear() {
75  }
76 
77  public void Resize(uint size) {
79  }
80 
81  public bool Empty() {
83  return ret;
84  }
85 
86  public void CopyIntersection(AssignmentIntContainer container) {
89  }
90 
91  public void Copy(AssignmentIntContainer container) {
94  }
95 
96  public bool Contains(IntVar var) {
98  return ret;
99  }
100 
103  return ret;
104  }
105 
106  public IntVarElement Element(int index) {
108  return ret;
109  }
110 
111  public int Size() {
113  return ret;
114  }
115 
116  public void Store() {
118  }
119 
120  public void Restore() {
122  }
123 
124  public bool AreAllElementsBound() {
126  return ret;
127  }
128 
129 }
130 
131 }
void CopyIntersection(AssignmentIntContainer container)
Definition: IntVar.cs:18
IntVarElement Element(int index)
void Dispose()
static global::System.IntPtr AssignmentIntContainer_Element__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void Clear()
void Resize(uint size)
IntVarElement Add(IntVar var)
static bool Pending
static int AssignmentIntContainer_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void AssignmentIntContainer_Resize(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
bool AreAllElementsBound()
IntVarElement AddAtPosition(IntVar var, int position)
static global::System.IntPtr AssignmentIntContainer_Element__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool swigCMemOwn
IntVarElement FastAdd(IntVar var)
void Store()
using System
Definition: Program.cs:14
static void AssignmentIntContainer_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
bool Contains(IntVar var)
static void AssignmentIntContainer_CopyIntersection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
IntVarElement Element(IntVar var)
virtual void Dispose(bool disposing)
static void AssignmentIntContainer_Restore(global::System.Runtime.InteropServices.HandleRef jarg1)
static void AssignmentIntContainer_Store(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_AssignmentIntContainer(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool AssignmentIntContainer_Empty(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr AssignmentIntContainer_FastAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void Restore()
int Size()
static bool AssignmentIntContainer_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void AssignmentIntContainer_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.Exception Retrieve()
static bool AssignmentIntContainer_AreAllElementsBound(global::System.Runtime.InteropServices.HandleRef jarg1)
void Copy(AssignmentIntContainer container)
bool Empty()
static global::System.IntPtr AssignmentIntContainer_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr AssignmentIntContainer_AddAtPosition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
AssignmentIntContainer()