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

« back to all changes in this revision

Viewing changes to scripts/java/vVector3.java

  • 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
public class vVector3 {
 
11
  private long swigCPtr;
 
12
  protected boolean swigCMemOwn;
 
13
 
 
14
  protected vVector3(long cPtr, boolean cMemoryOwn) {
 
15
    swigCMemOwn = cMemoryOwn;
 
16
    swigCPtr = cPtr;
 
17
  }
 
18
 
 
19
  protected static long getCPtr(vVector3 obj) {
 
20
    return (obj == null) ? 0 : obj.swigCPtr;
 
21
  }
 
22
 
 
23
  protected void finalize() {
 
24
    delete();
 
25
  }
 
26
 
 
27
  public synchronized void delete() {
 
28
    if(swigCPtr != 0 && swigCMemOwn) {
 
29
      swigCMemOwn = false;
 
30
      openbabelJNI.delete_vVector3(swigCPtr);
 
31
    }
 
32
    swigCPtr = 0;
 
33
  }
 
34
 
 
35
  public vVector3() {
 
36
    this(openbabelJNI.new_vVector3__SWIG_0(), true);
 
37
  }
 
38
 
 
39
  public vVector3(long n) {
 
40
    this(openbabelJNI.new_vVector3__SWIG_1(n), true);
 
41
  }
 
42
 
 
43
  public long size() {
 
44
    return openbabelJNI.vVector3_size(swigCPtr, this);
 
45
  }
 
46
 
 
47
  public long capacity() {
 
48
    return openbabelJNI.vVector3_capacity(swigCPtr, this);
 
49
  }
 
50
 
 
51
  public void reserve(long n) {
 
52
    openbabelJNI.vVector3_reserve(swigCPtr, this, n);
 
53
  }
 
54
 
 
55
  public boolean isEmpty() {
 
56
    return openbabelJNI.vVector3_isEmpty(swigCPtr, this);
 
57
  }
 
58
 
 
59
  public void clear() {
 
60
    openbabelJNI.vVector3_clear(swigCPtr, this);
 
61
  }
 
62
 
 
63
  public void add(vector3 x) {
 
64
    openbabelJNI.vVector3_add(swigCPtr, this, vector3.getCPtr(x), x);
 
65
  }
 
66
 
 
67
  public vector3 get(int i) {
 
68
    return new vector3(openbabelJNI.vVector3_get(swigCPtr, this, i), false);
 
69
  }
 
70
 
 
71
  public void set(int i, vector3 val) {
 
72
    openbabelJNI.vVector3_set(swigCPtr, this, i, vector3.getCPtr(val), val);
 
73
  }
 
74
 
 
75
}