/* ----------------------------------------------------------------------------
 * 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 OBFFCalculation2 : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

  internal OBFFCalculation2(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = new HandleRef(this, cPtr);
  }

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

  ~OBFFCalculation2() {
    Dispose();
  }

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

  public double energy {
    set {
      openbabelPINVOKE.OBFFCalculation2_energy_set(swigCPtr, value);
    } 
    get {
      double ret = openbabelPINVOKE.OBFFCalculation2_energy_get(swigCPtr);
      return ret;
    } 
  }

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

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

  public int idx_a {
    set {
      openbabelPINVOKE.OBFFCalculation2_idx_a_set(swigCPtr, value);
    } 
    get {
      int ret = openbabelPINVOKE.OBFFCalculation2_idx_a_get(swigCPtr);
      return ret;
    } 
  }

  public int idx_b {
    set {
      openbabelPINVOKE.OBFFCalculation2_idx_b_set(swigCPtr, value);
    } 
    get {
      int ret = openbabelPINVOKE.OBFFCalculation2_idx_b_get(swigCPtr);
      return ret;
    } 
  }

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

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

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

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

  public virtual void SetupPointers() {
    openbabelPINVOKE.OBFFCalculation2_SetupPointers(swigCPtr);
  }

  public OBFFCalculation2() : this(openbabelPINVOKE.new_OBFFCalculation2(), true) {
  }

}
