/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package hep.aida.swig; import hep.aida.jni.AIDAJNIUtil; public class ICloud extends IBaseHistogram implements hep.aida.ICloud { private long swigCPtr; public ICloud(long cPtr, boolean cMemoryOwn) { super(AIDAJNI.SWIGICloudUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } protected static long getCPtr(hep.aida.ICloud obj) { if (obj instanceof ICloud) { return (obj == null) ? 0 : ((ICloud)obj).swigCPtr; } else { long cPtr = AIDAJNI.new_ICloud(); // FIXME, memory leak if Java class gets finalized, since C++ director is not freed. AIDAJNI.ICloud_director_connect(obj, cPtr, true, true); return cPtr; } } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; AIDAJNI.delete_ICloud(swigCPtr); } swigCPtr = 0; super.delete(); } protected void swigDirectorDisconnect() { swigCMemOwn = false; delete(); } public void swigReleaseOwnership() { swigCMemOwn = false; AIDAJNI.ICloud_change_ownership(this, swigCPtr, false); } public void swigTakeOwnership() { swigCMemOwn = true; AIDAJNI.ICloud_change_ownership(this, swigCPtr, true); } public double sumOfWeights() { return AIDAJNI.ICloud_sumOfWeights(swigCPtr, this); } public void convertToHistogram() { AIDAJNI.ICloud_convertToHistogram(swigCPtr, this); } public boolean isConverted() { return AIDAJNI.ICloud_isConverted(swigCPtr, this); } public int maxEntries() { return AIDAJNI.ICloud_maxEntries(swigCPtr, this); } public void scale(double scaleFactor) { AIDAJNI.ICloud_scale(swigCPtr, this, scaleFactor); } public ICloud() { this(AIDAJNI.new_ICloud(), true); AIDAJNI.ICloud_director_connect(this, swigCPtr, swigCMemOwn, true); } }