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

SetVarLubRanges.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 SetVarLubRanges extends RangeIterator {
00020   private long swigCPtr;
00021   protected boolean swigCMemOwn;
00022 
00023   protected SetVarLubRanges(long cPtr, boolean cMemoryOwn) {
00024     swigCMemOwn = cMemoryOwn;
00025     swigCPtr = cPtr;
00026   }
00027 
00028   protected static long getCPtr(SetVarLubRanges 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_SetVarLubRanges(swigCPtr);
00040     }
00041     swigCPtr = 0;
00042   }
00043 
00044   public SetVarLubRanges(SetVar sv) {
00045     this(GecodeJNI.new_SetVarLubRanges(SetVar.getCPtr(sv)), true);
00046   }
00047 
00048   public synchronized boolean notDone() {
00049     return GecodeJNI.SetVarLubRanges_notDone(swigCPtr);
00050   }
00051 
00052   public synchronized void next() {
00053     GecodeJNI.SetVarLubRanges_next(swigCPtr);
00054   }
00055 
00056   public synchronized int min() {
00057     return GecodeJNI.SetVarLubRanges_min(swigCPtr);
00058   }
00059 
00060   public synchronized int max() {
00061     return GecodeJNI.SetVarLubRanges_max(swigCPtr);
00062   }
00063 
00064   public synchronized long width() {
00065     return GecodeJNI.SetVarLubRanges_width(swigCPtr);
00066   }
00067 
00068 }