/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class OBSetData extends OBGenericData {
  private long swigCPtr;

  protected OBSetData(long cPtr, boolean cMemoryOwn) {
    super(openbabelJNI.SWIGOBSetDataUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(OBSetData obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_OBSetData(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public OBSetData() {
    this(openbabelJNI.new_OBSetData(), true);
  }

  public void AddData(OBGenericData d) {
    openbabelJNI.OBSetData_AddData(swigCPtr, this, OBGenericData.getCPtr(d), d);
  }

  public void SetData(vectorData vdata) {
    openbabelJNI.OBSetData_SetData(swigCPtr, this, vectorData.getCPtr(vdata), vdata);
  }

  public OBGenericData GetData(String s) {
    long cPtr = openbabelJNI.OBSetData_GetData__SWIG_0(swigCPtr, this, s);
    return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
  }

  public vectorData GetData() {
    return new vectorData(openbabelJNI.OBSetData_GetData__SWIG_2(swigCPtr, this), false);
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator GetBegin() {
    return new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBSetData_GetBegin(swigCPtr, this), true);
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator GetEnd() {
    return new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBSetData_GetEnd(swigCPtr, this), true);
  }

  public void DeleteData(OBGenericData gd) {
    openbabelJNI.OBSetData_DeleteData(swigCPtr, this, OBGenericData.getCPtr(gd), gd);
  }

}
