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

SetViewGlbRanges.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 
00022 public class SetViewGlbRanges extends RangeIterator {
00023   private long swigCPtr;
00024   protected boolean swigCMemOwn;
00025 
00026   protected SetViewGlbRanges(long cPtr, boolean cMemoryOwn) {
00027     swigCMemOwn = cMemoryOwn;
00028     swigCPtr = cPtr;
00029   }
00030 
00031   protected static long getCPtr(SetViewGlbRanges obj) {
00032     return (obj == null) ? 0 : obj.swigCPtr;
00033   }
00034 
00035   protected void finalize() {
00036     delete();
00037   }
00038 
00039   public void delete() {
00040     if(swigCPtr != 0 && swigCMemOwn) {
00041       swigCMemOwn = false;
00042       GecodeJNI.delete_SetViewGlbRanges(swigCPtr);
00043     }
00044     swigCPtr = 0;
00045   }
00046 
00047   public SetViewGlbRanges(SetVarView sv) {
00048     this(GecodeJNI.new_SetViewGlbRanges(SetVarView.getCPtr(sv)), true);
00049   }
00050 
00051   public synchronized boolean notDone() {
00052     return GecodeJNI.SetViewGlbRanges_notDone(swigCPtr);
00053   }
00054 
00055   public synchronized void next() {
00056     GecodeJNI.SetViewGlbRanges_next(swigCPtr);
00057   }
00058 
00059   public synchronized int min() {
00060     return GecodeJNI.SetViewGlbRanges_min(swigCPtr);
00061   }
00062 
00063   public synchronized int max() {
00064     return GecodeJNI.SetViewGlbRanges_max(swigCPtr);
00065   }
00066 
00067   public synchronized long width() {
00068     return GecodeJNI.SetViewGlbRanges_width(swigCPtr);
00069   }
00070 
00071 }