14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
18public partial class LocalSearchOperatorState : global::System.IDisposable {
24 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
28 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
34 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
35 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
36 obj.swigCMemOwn =
false;
40 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
44 ~LocalSearchOperatorState() {
50 global::System.GC.SuppressFinalize(
this);
53 protected virtual void Dispose(
bool disposing) {
55 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
60 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
65 public LocalSearchOperatorState() : this(operations_research_constraint_solverPINVOKE.new_LocalSearchOperatorState(), true) {
108 public void Revert(
bool only_incremental) {
115 if (cPtr != global::System.IntPtr.Zero) {
117 long[] outArray =
new long[tmpVector.
Count];
118 tmpVector.
CopyTo(outArray);
125 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.LocalSearchOperatorState_IncrementalIndicesChanged(swigCPtr);
127 if (cPtr != global::System.IntPtr.Zero) {
129 long[] outArray =
new long[tmpVector.
Count];
130 tmpVector.
CopyTo(outArray);
136 public void Resize(
int size) {
137 operations_research_constraint_solverPINVOKE.LocalSearchOperatorState_Resize(swigCPtr, size);