Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
PropagationBaseObject.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (https://www.swig.org).
5// Version 4.2.1
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
18public partial class PropagationBaseObject : BaseObject {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21 internal PropagationBaseObject(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.PropagationBaseObject_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropagationBaseObject obj) {
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(PropagationBaseObject obj) {
30 if (obj != null) {
31 if (!obj.swigCMemOwn)
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;
35 obj.Dispose();
36 return ptr;
37 } else {
38 return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 }
40 }
41
42 protected override void Dispose(bool disposing) {
43 lock(this) {
44 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
45 if (swigCMemOwn) {
46 swigCMemOwn = false;
48 }
49 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
50 }
51 base.Dispose(disposing);
52 }
53 }
54
55 public PropagationBaseObject(Solver s) : this(operations_research_constraint_solverPINVOKE.new_PropagationBaseObject(Solver.getCPtr(s)), true) {
56 }
58 public override string ToString() {
60 return ret;
61 }
62
63 public Solver solver() {
65 Solver ret = (cPtr == global::System.IntPtr.Zero) ? null : new Solver(cPtr, false);
66 return ret;
67 }
68
69 public void FreezeQueue() {
71 }
72
73 public void UnfreezeQueue() {
75 }
76
77 public void EnqueueDelayedDemon(Demon d) {
79 }
80
81 public void EnqueueVar(Demon d) {
83 }
84
85 public void ResetActionOnFail() {
87 }
88
89 public void SetVariableToCleanOnFail(IntVar v) {
91 }
92
93 public virtual string Name() {
95 return ret;
96 }
97
98 public void SetName(string name) {
105 return ret;
106 }
107
108 public virtual string BaseName() {
110 return ret;
111 }
112
113}
114
115}
static void PropagationBaseObject_ResetActionOnFail(global::System.Runtime.InteropServices.HandleRef jarg1)
static string PropagationBaseObject_Name(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PropagationBaseObject_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static string PropagationBaseObject_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_PropagationBaseObject(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr PropagationBaseObject_solver(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PropagationBaseObject_UnfreezeQueue(global::System.Runtime.InteropServices.HandleRef jarg1)
static string PropagationBaseObject_BaseName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PropagationBaseObject_EnqueueDelayedDemon(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool PropagationBaseObject_HasName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PropagationBaseObject_SetVariableToCleanOnFail(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void PropagationBaseObject_FreezeQueue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PropagationBaseObject_EnqueueVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)