15 using System.Collections;
16 using System.Collections.Generic;
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
RegularLimit obj) {
26 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
29 protected override void Dispose(
bool disposing) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 base.Dispose(disposing);
42 public RegularLimit(
Solver s,
long time,
long branches,
long failures,
long solutions,
bool smart_time_check,
bool cumulative) : this(
operations_research_constraint_solverPINVOKE.new_RegularLimit(
Solver.getCPtr(s), time, branches, failures, solutions, smart_time_check, cumulative), true) {
66 public override void Init() {
74 public void UpdateLimits(
long time,
long branches,
long failures,
long solutions) {