14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
18public partial class Assignment : PropagationBaseObject {
22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
Assignment 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(Assignment 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 Assignment(Solver
solver) : this(operations_research_constraint_solverPINVOKE.new_Assignment__SWIG_0(Solver.getCPtr(
solver)), true) {
118 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
124 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
424 if (cPtr != global::System.IntPtr.Zero) {
426 int[] outArray =
new int[tmpVector.
Count];
427 tmpVector.
CopyTo(outArray);
434 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.Assignment_BackwardSequence(swigCPtr, SequenceVar.getCPtr(var));
436 if (cPtr != global::System.IntPtr.Zero) {
438 int[] outArray =
new int[tmpVector.
Count];
439 tmpVector.
CopyTo(outArray);
446 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.Assignment_Unperformed(swigCPtr, SequenceVar.getCPtr(var));
448 if (cPtr != global::System.IntPtr.Zero) {
450 int[] outArray =
new int[tmpVector.
Count];
451 tmpVector.
CopyTo(outArray);
457 public void SetSequence(SequenceVar var,
int[] forward_sequence,
int[] backward_sequence,
int[] unperformed) {
458 operations_research_constraint_solverPINVOKE.Assignment_SetSequence(swigCPtr, SequenceVar.getCPtr(var), forward_sequence.Length, forward_sequence , backward_sequence.Length, backward_sequence , unperformed.Length, unperformed );