IntViewRanges.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 00015 public class IntViewRanges extends RangeIterator { 00016 private long swigCPtr; 00017 protected boolean swigCMemOwn; 00018 00019 protected IntViewRanges(long cPtr, boolean cMemoryOwn) { 00020 swigCMemOwn = cMemoryOwn; 00021 swigCPtr = cPtr; 00022 } 00023 00024 protected static long getCPtr(IntViewRanges obj) { 00025 return (obj == null) ? 0 : obj.swigCPtr; 00026 } 00027 00028 protected void finalize() { 00029 delete(); 00030 } 00031 00032 public void delete() { 00033 if(swigCPtr != 0 && swigCMemOwn) { 00034 swigCMemOwn = false; 00035 GecodeJNI.delete_IntViewRanges(swigCPtr); 00036 } 00037 swigCPtr = 0; 00038 } 00039 00040 public IntViewRanges(IntVarView iv) { 00043 this(GecodeJNI.new_IntViewRanges(IntVarView.getCPtr(iv)), true); 00044 } 00045 00046 public synchronized boolean notDone() { 00047 return GecodeJNI.IntViewRanges_notDone(swigCPtr); 00048 } 00049 00050 public synchronized void next() { 00051 GecodeJNI.IntViewRanges_next(swigCPtr); 00052 } 00053 00054 public synchronized int min() { 00055 return GecodeJNI.IntViewRanges_min(swigCPtr); 00056 } 00057 00058 public synchronized int max() { 00059 return GecodeJNI.IntViewRanges_max(swigCPtr); 00060 } 00061 00062 public synchronized long width() { 00063 return GecodeJNI.IntViewRanges_width(swigCPtr); 00064 } 00065 00066 }
