BranchingDesc.java
Go to the documentation of this file.00001 /* ---------------------------------------------------------------------------- 00002 * This file was automatically generated by SWIG (http://www.swig.org). 00003 * Version 1.3.29 00004 * 00005 * Do not make changes to this file unless you know what you are doing--modify 00006 * the SWIG interface file instead. 00007 * ----------------------------------------------------------------------------- */ 00008 00009 package org.gecode; 00010 00019 public class BranchingDesc { 00020 private long swigCPtr; 00021 protected boolean swigCMemOwn; 00022 00023 protected BranchingDesc(long cPtr, boolean cMemoryOwn) { 00024 swigCMemOwn = cMemoryOwn; 00025 swigCPtr = cPtr; 00026 } 00027 00028 protected static long getCPtr(BranchingDesc obj) { 00029 return (obj == null) ? 0 : obj.swigCPtr; 00030 } 00031 00032 protected void finalize() { 00033 delete(); 00034 } 00035 00036 public void delete() { 00037 if(swigCPtr != 0 && swigCMemOwn) { 00038 swigCMemOwn = false; 00039 GecodeJNI.delete_BranchingDesc(swigCPtr); 00040 } 00041 swigCPtr = 0; 00042 } 00043 00044 public int alternatives() { 00047 return GecodeJNI.BranchingDesc_alternatives(swigCPtr); 00048 } 00049 00050 }
