Files
openbabel/scripts/java/vectorMol.java
T
Geoffrey Hutchison 8dad311517 * src/atom.h, src/base.h, src/bond.h, src/residue.h, src/mol.h,
src/ring.h, src/mol.cpp, src/base.cpp, src/obiter.h: Remove
  OBNodeBase, OBEdgeBase, and OBGraphBase classes, contributed by
  Gerd Menche.

  * tools/obprop.cpp: Ditto. Example of changing iterators to new format.

  * scripts/*: Updated based on above changes.
2006-11-20 18:43:41 +00:00

76 lines
1.8 KiB
Java

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.30
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
public class vectorMol {
private long swigCPtr;
protected boolean swigCMemOwn;
protected vectorMol(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(vectorMol obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
openbabelJNI.delete_vectorMol(swigCPtr);
}
swigCPtr = 0;
}
public vectorMol() {
this(openbabelJNI.new_vectorMol__SWIG_0(), true);
}
public vectorMol(long n) {
this(openbabelJNI.new_vectorMol__SWIG_1(n), true);
}
public long size() {
return openbabelJNI.vectorMol_size(swigCPtr, this);
}
public long capacity() {
return openbabelJNI.vectorMol_capacity(swigCPtr, this);
}
public void reserve(long n) {
openbabelJNI.vectorMol_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return openbabelJNI.vectorMol_isEmpty(swigCPtr, this);
}
public void clear() {
openbabelJNI.vectorMol_clear(swigCPtr, this);
}
public void add(OBMol x) {
openbabelJNI.vectorMol_add(swigCPtr, this, OBMol.getCPtr(x), x);
}
public OBMol get(int i) {
return new OBMol(openbabelJNI.vectorMol_get(swigCPtr, this, i), false);
}
public void set(int i, OBMol x) {
openbabelJNI.vectorMol_set(swigCPtr, this, i, OBMol.getCPtr(x), x);
}
}