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
13using System;
14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
17
18public 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
31 ~AssignmentIntContainer() {
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) {
56 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.AssignmentIntContainer_Add(swigCPtr, IntVar.getCPtr(var));
57 IntVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVarElement(cPtr, false);
58 return ret;
59 }
60
62 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.AssignmentIntContainer_FastAdd(swigCPtr, IntVar.getCPtr(var));
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) {
68 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.AssignmentIntContainer_AddAtPosition(swigCPtr, IntVar.getCPtr(var), 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
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)
IntVarElement AddAtPosition(IntVar var, int position)
static void AssignmentIntContainer_Restore(global::System.Runtime.InteropServices.HandleRef jarg1)
static void AssignmentIntContainer_CopyIntersection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool AssignmentIntContainer_AreAllElementsBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static void AssignmentIntContainer_Store(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr AssignmentIntContainer_Element__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool AssignmentIntContainer_Empty(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr AssignmentIntContainer_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void AssignmentIntContainer_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_AssignmentIntContainer(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr AssignmentIntContainer_AddAtPosition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
static bool AssignmentIntContainer_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int AssignmentIntContainer_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void AssignmentIntContainer_Resize(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static global::System.IntPtr AssignmentIntContainer_FastAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr AssignmentIntContainer_Element__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void AssignmentIntContainer_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)