DotNet Reference

.Net Reference

IntVarLocalSearchOperatorTemplate.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
13using System;
14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
17
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20
21 internal IntVarLocalSearchOperatorTemplate(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntVarLocalSearchOperatorTemplate_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntVarLocalSearchOperatorTemplate 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 override bool HoldsDelta() {
44 return ret;
45 }
46
47 public virtual bool IsIncremental() {
49 return ret;
50 }
51
52 public int Size() {
54 return ret;
55 }
56
57 public long Value(long index) {
59 return ret;
60 }
61
62 public IntVar Var(long index) {
64 IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
65 return ret;
66 }
67
68 public long OldValue(long index) {
70 return ret;
71 }
72
73 public void SetValue(long index, long value) {
75 }
76
77 public bool Activated(long index) {
79 return ret;
80 }
81
82 public void Activate(long index) {
84 }
85
86 public void Deactivate(long index) {
88 }
89
90 public void AddVars(IntVarVector vars) {
93 }
94
95 public virtual void OnStart() {
97 }
98
99}
100
101}
static global::System.IntPtr IntVarLocalSearchOperatorTemplate_SWIGUpcast(global::System.IntPtr jarg1)
static global::System.IntPtr IntVarLocalSearchOperatorTemplate_Var(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void delete_IntVarLocalSearchOperatorTemplate(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool IntVarLocalSearchOperatorTemplate_IsIncremental(global::System.Runtime.InteropServices.HandleRef jarg1)
static int IntVarLocalSearchOperatorTemplate_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarLocalSearchOperatorTemplate_Deactivate(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntVarLocalSearchOperatorTemplate_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static bool IntVarLocalSearchOperatorTemplate_Activated(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntVarLocalSearchOperatorTemplate_AddVars(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static long IntVarLocalSearchOperatorTemplate_Value(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntVarLocalSearchOperatorTemplate_OnStart(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarLocalSearchOperatorTemplate_Activate(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntVarLocalSearchOperatorTemplate_OldValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static bool IntVarLocalSearchOperatorTemplate_HoldsDelta(global::System.Runtime.InteropServices.HandleRef jarg1)