DotNet Reference

.Net Reference

SolutionPool.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 SolutionPool : BaseObject {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20
21 internal SolutionPool(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.SolutionPool_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SolutionPool 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 virtual void Initialize(Assignment assignment) {
44 }
45
46 public virtual void RegisterNewSolution(Assignment assignment) {
48 }
49
50 public virtual void GetNextSolution(Assignment assignment) {
52 }
53
54 public virtual bool SyncNeeded(Assignment local_assignment) {
55 bool ret = operations_research_constraint_solverPINVOKE.SolutionPool_SyncNeeded(swigCPtr, Assignment.getCPtr(local_assignment));
56 return ret;
57 }
58
59}
60
61}
virtual void Initialize(Assignment assignment)
Definition: SolutionPool.cs:42
virtual void GetNextSolution(Assignment assignment)
Definition: SolutionPool.cs:50
virtual bool SyncNeeded(Assignment local_assignment)
Definition: SolutionPool.cs:54
virtual void RegisterNewSolution(Assignment assignment)
Definition: SolutionPool.cs:46
override void Dispose(bool disposing)
Definition: SolutionPool.cs:29
static global::System.IntPtr SolutionPool_SWIGUpcast(global::System.IntPtr jarg1)
static void delete_SolutionPool(global::System.Runtime.InteropServices.HandleRef jarg1)
static void SolutionPool_Initialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void SolutionPool_GetNextSolution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool SolutionPool_SyncNeeded(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void SolutionPool_RegisterNewSolution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)