Generated on Fri Oct 6 16:26:44 2006 for Gecode/J by doxygen 1.4.7

JavaBranchingDesc.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 
00018 public final class JavaBranchingDesc {
00019   private long swigCPtr;
00020   protected boolean swigCMemOwn;
00021 
00022   protected JavaBranchingDesc(long cPtr, boolean cMemoryOwn) {
00023     swigCMemOwn = cMemoryOwn;
00024     swigCPtr = cPtr;
00025   }
00026 
00027   protected static long getCPtr(JavaBranchingDesc obj) {
00028     return (obj == null) ? 0 : obj.swigCPtr;
00029   }
00030 
00031   protected void finalize() {
00032     delete();
00033   }
00034 
00035   public void delete() {
00036     if(swigCPtr != 0 && swigCMemOwn) {
00037       swigCMemOwn = false;
00038       GecodeJNI.delete_JavaBranchingDesc(swigCPtr);
00039     }
00040     swigCPtr = 0;
00041   }
00042 
00043    public JavaBranchingDesc(int pos, int val) {
00047     this(GecodeJNI.new_JavaBranchingDesc(pos, val), true);
00048   }
00049 
00050    public int pos() {
00053     return GecodeJNI.JavaBranchingDesc_pos(swigCPtr);
00054   }
00055 
00056    public int val() {
00059     return GecodeJNI.JavaBranchingDesc_val(swigCPtr);
00060   }
00061 
00062 }