DotNet Reference

.Net Reference

SequenceVarElement.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 SequenceVarElement : AssignmentElement {
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20 
21  internal SequenceVarElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.SequenceVarElement_SWIGUpcast(cPtr), cMemoryOwn) {
22  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23  }
24 
25  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SequenceVarElement 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 SequenceVarElement() : this(operations_research_constraint_solverPINVOKE.new_SequenceVarElement__SWIG_0(), true) {
43  }
44 
45  public SequenceVarElement(SequenceVar var) : this(operations_research_constraint_solverPINVOKE.new_SequenceVarElement__SWIG_1(SequenceVar.getCPtr(var)), true) {
46  }
47 
48  public void Reset(SequenceVar var) {
50  }
51 
54  SequenceVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVarElement(cPtr, false);
55  return ret;
56  }
57 
58  public void Copy(SequenceVarElement element) {
61  }
62 
63  public SequenceVar Var() {
65  SequenceVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVar(cPtr, false);
66  return ret;
67  }
68 
69  public void Store() {
71  }
72 
73  public void Restore() {
75  }
76 
77  public int[] ForwardSequence() {
79  IntVector tmpVector = null;
80  if (cPtr != global::System.IntPtr.Zero) {
81  tmpVector = new IntVector(cPtr, true);
82  int[] outArray = new int[tmpVector.Count];
83  tmpVector.CopyTo(outArray);
84  return outArray;
85  }
86  return null;
87 }
88 
89  public int[] BackwardSequence() {
91  IntVector tmpVector = null;
92  if (cPtr != global::System.IntPtr.Zero) {
93  tmpVector = new IntVector(cPtr, true);
94  int[] outArray = new int[tmpVector.Count];
95  tmpVector.CopyTo(outArray);
96  return outArray;
97  }
98  return null;
99 }
100 
101  public int[] Unperformed() {
103  IntVector tmpVector = null;
104  if (cPtr != global::System.IntPtr.Zero) {
105  tmpVector = new IntVector(cPtr, true);
106  int[] outArray = new int[tmpVector.Count];
107  tmpVector.CopyTo(outArray);
108  return outArray;
109  }
110  return null;
111 }
112 
113  public void SetSequence( int[] forward_sequence, int[] backward_sequence, int[] unperformed) {
114  operations_research_constraint_solverPINVOKE.SequenceVarElement_SetSequence(swigCPtr, forward_sequence.Length, forward_sequence , backward_sequence.Length, backward_sequence , unperformed.Length, unperformed );
115  }
116 
117  public void SetForwardSequence( int[] forward_sequence) {
118  operations_research_constraint_solverPINVOKE.SequenceVarElement_SetForwardSequence(swigCPtr, forward_sequence.Length, forward_sequence );
119  }
120 
121  public void SetBackwardSequence( int[] backward_sequence) {
122  operations_research_constraint_solverPINVOKE.SequenceVarElement_SetBackwardSequence(swigCPtr, backward_sequence.Length, backward_sequence );
123  }
124 
125  public void SetUnperformed( int[] unperformed) {
126  operations_research_constraint_solverPINVOKE.SequenceVarElement_SetUnperformed(swigCPtr, unperformed.Length, unperformed );
127  }
128 
129  public bool Bound() {
131  return ret;
132  }
133 
134  public string ToString() {
136  return ret;
137  }
138 
139 }
140 
141 }
static void SequenceVarElement_SetBackwardSequence(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
static global::System.IntPtr SequenceVarElement_BackwardSequence(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr SequenceVarElement_Clone(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetForwardSequence(int[] forward_sequence)
static global::System.IntPtr SequenceVarElement_Var(global::System.Runtime.InteropServices.HandleRef jarg1)
bool swigCMemOwn
static bool Pending
void SetSequence(int[] forward_sequence, int[] backward_sequence, int[] unperformed)
void Copy(SequenceVarElement element)
void SetBackwardSequence(int[] backward_sequence)
static global::System.IntPtr SequenceVarElement_Unperformed(global::System.Runtime.InteropServices.HandleRef jarg1)
int Count
static void SequenceVarElement_Reset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool SequenceVarElement_Bound(global::System.Runtime.InteropServices.HandleRef jarg1)
int[] Unperformed()
void SetUnperformed(int[] unperformed)
Definition: SequenceVar.cs:18
static void SequenceVarElement_SetForwardSequence(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
using System
Definition: Program.cs:14
void Restore()
static void SequenceVarElement_SetSequence(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2, int length3, int[] jarg3, int length4, int[] jarg4)
int[] ForwardSequence()
override void Dispose(bool disposing)
static global::System.IntPtr SequenceVarElement_ForwardSequence(global::System.Runtime.InteropServices.HandleRef jarg1)
void CopyTo(int[] array)
SequenceVar Var()
static string SequenceVarElement_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
bool Bound()
SequenceVarElement(SequenceVar var)
static void SequenceVarElement_Store(global::System.Runtime.InteropServices.HandleRef jarg1)
void Store()
static void SequenceVarElement_SetUnperformed(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
int[] BackwardSequence()
static void delete_SequenceVarElement(global::System.Runtime.InteropServices.HandleRef jarg1)
string ToString()
SequenceVarElement()
static void SequenceVarElement_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.Exception Retrieve()
static void SequenceVarElement_Restore(global::System.Runtime.InteropServices.HandleRef jarg1)
SequenceVarElement Clone()
static global::System.IntPtr SequenceVarElement_SWIGUpcast(global::System.IntPtr jarg1)
void Reset(SequenceVar var)