23 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
26 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
BestBoundCallback obj) {
27 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
BestBoundCallback obj) {
33 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
34 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
35 obj.swigCMemOwn =
false;
39 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
43 ~BestBoundCallback() {
49 global::System.GC.SuppressFinalize(
this);
52 protected virtual void Dispose(
bool disposing) {
54 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
59 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
65 operations_research_satPINVOKE.BestBoundCallback_NewBestBound(swigCPtr, bound);
69 SwigDirectorConnect();
72 private void SwigDirectorConnect() {
73 if (SwigDerivedClassHasMethod(
"NewBestBound", swigMethodTypes0))
78 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
79 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
80 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
81 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
82 if (methodInfo.DeclaringType ==
null)
85 if (methodInfo.Name != methodName)
88 var parameters = methodInfo.GetParameters();
89 if (parameters.Length != methodTypes.Length)
92 bool parametersMatch =
true;
93 for (var i = 0; i < parameters.Length; i++) {
94 if (parameters[i].ParameterType != methodTypes[i]) {
95 parametersMatch =
false;
100 if (!parametersMatch)
103 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(
BestBoundCallback))) &&
104 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
112 private void SwigDirectorMethodNewBestBound(
double bound) {
120 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
double) };