SequenceVarLocalSearchOperatorTemplate.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 3.0.12
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 
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20 
21  internal SequenceVarLocalSearchOperatorTemplate(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.SequenceVarLocalSearchOperatorTemplate_SWIGUpcast(cPtr), cMemoryOwn) {
22  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23  }
24 
25  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SequenceVarLocalSearchOperatorTemplate obj) {
26  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27  }
28 
30  Dispose();
31  }
32 
33  public override void Dispose() {
34  lock(this) {
35  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36  if (swigCMemOwn) {
37  swigCMemOwn = false;
39  }
40  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
41  }
42  global::System.GC.SuppressFinalize(this);
43  base.Dispose();
44  }
45  }
46 
47  public override bool HoldsDelta() {
49  return ret;
50  }
51 
52  public virtual bool IsIncremental() {
54  return ret;
55  }
56 
57  public int Size() {
59  return ret;
60  }
61 
62  public int[] Value(long index) {
64  CpIntVector tmpVector = null;
65  if (cPtr != global::System.IntPtr.Zero) {
66  tmpVector = new CpIntVector(cPtr, true);
67  int[] outArray = new int[tmpVector.Count];
68  tmpVector.CopyTo(outArray);
69  return outArray;
70  }
71  return null;
72 }
73 
74  public SequenceVar Var(long index) {
76  SequenceVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVar(cPtr, false);
77  return ret;
78  }
79 
80  public int[] OldValue(long index) {
82  CpIntVector tmpVector = null;
83  if (cPtr != global::System.IntPtr.Zero) {
84  tmpVector = new CpIntVector(cPtr, true);
85  int[] outArray = new int[tmpVector.Count];
86  tmpVector.CopyTo(outArray);
87  return outArray;
88  }
89  return null;
90 }
91 
92  public void SetValue(long index, int[] value) {
94  }
95 
96  public bool Activated(long index) {
98  return ret;
99  }
100 
101  public void Activate(long index) {
103  }
104 
105  public void Deactivate(long index) {
107  }
108 
109  public void AddVars(SequenceVarVector vars) {
112  }
113 
114  public virtual void OnStart() {
116  }
117 
118 }
119 
120 }
static int SequenceVarLocalSearchOperatorTemplate_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool SequenceVarLocalSearchOperatorTemplate_HoldsDelta(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_SequenceVarLocalSearchOperatorTemplate(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr SequenceVarLocalSearchOperatorTemplate_OldValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr SequenceVarLocalSearchOperatorTemplate_SWIGUpcast(global::System.IntPtr jarg1)
static bool SequenceVarLocalSearchOperatorTemplate_IsIncremental(global::System.Runtime.InteropServices.HandleRef jarg1)
static void SequenceVarLocalSearchOperatorTemplate_Deactivate(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void SequenceVarLocalSearchOperatorTemplate_AddVars(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr SequenceVarLocalSearchOperatorTemplate_Value(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void SequenceVarLocalSearchOperatorTemplate_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, int length3, int[] jarg3)
static void SequenceVarLocalSearchOperatorTemplate_OnStart(global::System.Runtime.InteropServices.HandleRef jarg1)
static void SequenceVarLocalSearchOperatorTemplate_Activate(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static global::System.IntPtr SequenceVarLocalSearchOperatorTemplate_Var(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static bool SequenceVarLocalSearchOperatorTemplate_Activated(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)