/* ----------------------------------------------------------------------------
 * 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.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

public class OBFFCalculation4 : OBFFCalculation3 {
  private HandleRef swigCPtr;

  internal OBFFCalculation4(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBFFCalculation4Upcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(OBFFCalculation4 obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~OBFFCalculation4() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        openbabelPINVOKE.delete_OBFFCalculation4(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  public OBAtom d {
    set {
      openbabelPINVOKE.OBFFCalculation4_d_set(swigCPtr, OBAtom.getCPtr(value));
    } 
    get {
      IntPtr cPtr = openbabelPINVOKE.OBFFCalculation4_d_get(swigCPtr);
      OBAtom ret = (cPtr == IntPtr.Zero) ? null : new OBAtom(cPtr, false);
      return ret;
    } 
  }

  public int idx_d {
    set {
      openbabelPINVOKE.OBFFCalculation4_idx_d_set(swigCPtr, value);
    } 
    get {
      int ret = openbabelPINVOKE.OBFFCalculation4_idx_d_get(swigCPtr);
      return ret;
    } 
  }

  public SWIGTYPE_p_double pos_d {
    set {
      openbabelPINVOKE.OBFFCalculation4_pos_d_set(swigCPtr, SWIGTYPE_p_double.getCPtr(value));
    } 
    get {
      IntPtr cPtr = openbabelPINVOKE.OBFFCalculation4_pos_d_get(swigCPtr);
      SWIGTYPE_p_double ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);
      return ret;
    } 
  }

  public SWIGTYPE_p_double force_d {
    set {
      openbabelPINVOKE.OBFFCalculation4_force_d_set(swigCPtr, SWIGTYPE_p_double.getCPtr(value));
    } 
    get {
      IntPtr cPtr = openbabelPINVOKE.OBFFCalculation4_force_d_get(swigCPtr);
      SWIGTYPE_p_double ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);
      return ret;
    } 
  }

  public OBFFCalculation4() : this(openbabelPINVOKE.new_OBFFCalculation4(), true) {
  }

}
