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