DotNet Reference

DotNet Reference

IntVarFilteredDecisionBuilder.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.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 
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 IntVarFilteredDecisionBuilder(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntVarFilteredDecisionBuilder_SWIGUpcast(cPtr), cMemoryOwn) {
22  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23  }
24 
25  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntVarFilteredDecisionBuilder 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 Decision NextWrapper(Solver solver) {
43  global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarFilteredDecisionBuilder_NextWrapper(swigCPtr, Solver.getCPtr(solver));
44  Decision ret = (cPtr == global::System.IntPtr.Zero) ? null : new Decision(cPtr, false);
45  return ret;
46  }
47 
48  public virtual bool BuildSolution() {
50  return ret;
51  }
52 
53  public long NumberOfDecisions() {
55  return ret;
56  }
57 
58  public long NumberOfRejects() {
60  return ret;
61  }
62 
63 }
64 
65 }
static long IntVarFilteredDecisionBuilder_NumberOfDecisions(global::System.Runtime.InteropServices.HandleRef jarg1)
long NumberOfRejects()
Definition: Assignment.cs:11
Decision NextWrapper(Solver solver)
override void Dispose(bool disposing)
long NumberOfDecisions()
virtual bool BuildSolution()
static long IntVarFilteredDecisionBuilder_NumberOfRejects(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IntVarFilteredDecisionBuilder_NextWrapper(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool swigCMemOwn
Definition: BaseObject.cs:20
static bool IntVarFilteredDecisionBuilder_BuildSolution(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_IntVarFilteredDecisionBuilder(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IntVarFilteredDecisionBuilder_SWIGUpcast(global::System.IntPtr jarg1)
Definition: Decision.cs:18