23 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
26 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
SolutionCallback 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(
SolutionCallback 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);
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.SolutionCallback_OnSolutionCallback(swigCPtr);
127 public SWIGTYPE_p_operations_research__sat__CpSolverResponse
Response() {
133 SwigDirectorConnect();
136 private void SwigDirectorConnect() {
137 if (SwigDerivedClassHasMethod(
"OnSolutionCallback", swigMethodTypes0))
142 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
143 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
144 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
145 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
146 if (methodInfo.DeclaringType ==
null)
149 if (methodInfo.Name != methodName)
152 var parameters = methodInfo.GetParameters();
153 if (parameters.Length != methodTypes.Length)
156 bool parametersMatch =
true;
157 for (var i = 0; i < parameters.Length; i++) {
158 if (parameters[i].ParameterType != methodTypes[i]) {
159 parametersMatch =
false;
164 if (!parametersMatch)
167 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(
SolutionCallback))) &&
168 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
176 private void SwigDirectorMethodOnSolutionCallback() {
184 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };