22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
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;
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
SequenceVarElement obj) {
32 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
33 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
34 obj.swigCMemOwn =
false;
38 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
42 protected override void Dispose(
bool disposing) {
44 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
51 base.Dispose(disposing);
55 public SequenceVarElement() : this(operations_research_constraint_solverPINVOKE.new_SequenceVarElement__SWIG_0(), true) {
93 if (cPtr != global::System.IntPtr.Zero) {
95 int[] outArray =
new int[tmpVector.
Count];
96 tmpVector.
CopyTo(outArray);
103 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarElement_BackwardSequence(swigCPtr);
105 if (cPtr != global::System.IntPtr.Zero) {
107 int[] outArray =
new int[tmpVector.
Count];
108 tmpVector.
CopyTo(outArray);
115 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarElement_Unperformed(swigCPtr);
117 if (cPtr != global::System.IntPtr.Zero) {
119 int[] outArray =
new int[tmpVector.
Count];
120 tmpVector.
CopyTo(outArray);
126 public void SetSequence(
int[] forward_sequence,
int[] backward_sequence,
int[] unperformed) {
127 operations_research_constraint_solverPINVOKE.SequenceVarElement_SetSequence(swigCPtr, forward_sequence.Length, forward_sequence , backward_sequence.Length, backward_sequence , unperformed.Length, unperformed );
142 public bool Bound() {