DotNet Reference

.Net Reference

DisjunctiveConstraint.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
18public partial class DisjunctiveConstraint : Constraint {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20
21 internal DisjunctiveConstraint(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.DisjunctiveConstraint_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DisjunctiveConstraint 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 // Store list of delegates to avoid the GC to reclaim them.
43 private List<LongLongToLong> LongLongToLongCallbacks;
44 // Ensure that the GC does not collect any IndexEvaluator1Callback set from C#
45 // as the underlying C++ class will only store a pointer to it (i.e. no ownership).
46 private LongLongToLong StoreLongLongToLong(LongLongToLong c) {
47 if (LongLongToLongCallbacks == null)
48 LongLongToLongCallbacks = new List<LongLongToLong>();
49 LongLongToLongCallbacks.Add(c);
50 return c;
51 }
52
53 public virtual SequenceVar SequenceVar() {
55 SequenceVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVar(cPtr, false);
56 return ret;
57 }
58
59 public void SetTransitionTime( LongLongToLong transition_time) {
61 }
62
63 public long TransitionTime(int before_index, int after_index) {
64 long ret = operations_research_constraint_solverPINVOKE.DisjunctiveConstraint_TransitionTime(swigCPtr, before_index, after_index);
65 return ret;
66 }
67
68}
69
70}
void SetTransitionTime(LongLongToLong transition_time)
long TransitionTime(int before_index, int after_index)
static long DisjunctiveConstraint_TransitionTime(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void DisjunctiveConstraint_SetTransitionTime(global::System.Runtime.InteropServices.HandleRef jarg1, LongLongToLong jarg2)
static void delete_DisjunctiveConstraint(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr DisjunctiveConstraint_SequenceVar(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr DisjunctiveConstraint_SWIGUpcast(global::System.IntPtr jarg1)
delegate long LongLongToLong(long t, long u)