~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/csharp/OBAngleData.cs

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.36
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
 
 
10
using System;
 
11
using System.Runtime.InteropServices;
 
12
 
 
13
public class OBAngleData : OBGenericData {
 
14
  private HandleRef swigCPtr;
 
15
 
 
16
  internal OBAngleData(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBAngleDataUpcast(cPtr), cMemoryOwn) {
 
17
    swigCPtr = new HandleRef(this, cPtr);
 
18
  }
 
19
 
 
20
  internal static HandleRef getCPtr(OBAngleData obj) {
 
21
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 
22
  }
 
23
 
 
24
  ~OBAngleData() {
 
25
    Dispose();
 
26
  }
 
27
 
 
28
  public override void Dispose() {
 
29
    lock(this) {
 
30
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
 
31
        swigCMemOwn = false;
 
32
        openbabelPINVOKE.delete_OBAngleData(swigCPtr);
 
33
      }
 
34
      swigCPtr = new HandleRef(null, IntPtr.Zero);
 
35
      GC.SuppressFinalize(this);
 
36
      base.Dispose();
 
37
    }
 
38
  }
 
39
 
 
40
  public void Clear() {
 
41
    openbabelPINVOKE.OBAngleData_Clear(swigCPtr);
 
42
  }
 
43
 
 
44
  public uint FillAngleArray(SWIGTYPE_p_p_int angles, SWIGTYPE_p_unsigned_int size) {
 
45
    uint ret = openbabelPINVOKE.OBAngleData_FillAngleArray__SWIG_0(swigCPtr, SWIGTYPE_p_p_int.getCPtr(angles), SWIGTYPE_p_unsigned_int.getCPtr(size));
 
46
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
47
    return ret;
 
48
  }
 
49
 
 
50
  public bool FillAngleArray(SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t angles) {
 
51
    bool ret = openbabelPINVOKE.OBAngleData_FillAngleArray__SWIG_1(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t.getCPtr(angles));
 
52
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
53
    return ret;
 
54
  }
 
55
 
 
56
  public void SetData(OBAngle arg0) {
 
57
    openbabelPINVOKE.OBAngleData_SetData(swigCPtr, OBAngle.getCPtr(arg0));
 
58
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
59
  }
 
60
 
 
61
  public uint GetSize() {
 
62
    uint ret = openbabelPINVOKE.OBAngleData_GetSize(swigCPtr);
 
63
    return ret;
 
64
  }
 
65
 
 
66
}