22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
26 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(LocalSearchFilterManager obj) {
32 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
33 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
34 obj.swigCMemOwn =
false;
38 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
42 protected override void Dispose(
bool disposing) {
44 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
51 base.Dispose(disposing);
55 public partial class FilterEvent : global::System.IDisposable {
56 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
59 internal FilterEvent(global::System.IntPtr cPtr,
bool cMemoryOwn) {
61 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
64 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
FilterEvent obj) {
65 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
68 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
FilterEvent obj) {
71 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
72 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
73 obj.swigCMemOwn =
false;
77 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
87 global::System.GC.SuppressFinalize(
this);
90 protected virtual void Dispose(
bool disposing) {
92 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
97 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
102 public LocalSearchFilter
filter {
133 public FilterEvent() : this(operations_research_constraint_solverPINVOKE.new_LocalSearchFilterManager_FilterEvent(), true) {
143 public LocalSearchFilterManager(SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t filter_events) : this(
operations_research_constraint_solverPINVOKE.new_LocalSearchFilterManager__SWIG_0(SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t.getCPtr(filter_events)), true) {
145 SwigDirectorConnect();
150 SwigDirectorConnect();
176 private void SwigDirectorConnect() {
177 if (SwigDerivedClassHasMethod(
"ToString", swigMethodTypes0))
182 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
183 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
184 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
185 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
186 if (methodInfo.DeclaringType ==
null)
189 if (methodInfo.Name != methodName)
192 var parameters = methodInfo.GetParameters();
193 if (parameters.Length != methodTypes.Length)
196 bool parametersMatch =
true;
197 for (var i = 0; i < parameters.Length; i++) {
198 if (parameters[i].ParameterType != methodTypes[i]) {
199 parametersMatch =
false;
204 if (!parametersMatch)
207 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(LocalSearchFilterManager))) &&
208 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
216 private string SwigDirectorMethodToString() {
224 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };