/* ----------------------------------------------------------------------------
 * 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 OBFFCalculation3 : OBFFCalculation2 {
  private HandleRef swigCPtr;

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

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

  ~OBFFCalculation3() {
    Dispose();
  }

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

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

  public int idx_c {
    set {
      openbabelPINVOKE.OBFFCalculation3_idx_c_set(swigCPtr, value);
    } 
    get {
      int ret = openbabelPINVOKE.OBFFCalculation3_idx_c_get(swigCPtr);
      return ret;
    } 
  }

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

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

  public OBFFCalculation3() : this(openbabelPINVOKE.new_OBFFCalculation3(), true) {
  }

}
