mirror of
https://github.com/openbabel/openbabel.git
synced 2026-07-31 16:47:57 -05:00
76 lines
1.8 KiB
Java
76 lines
1.8 KiB
Java
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.31
|
|
*
|
|
* 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);
|
|
}
|
|
|
|
}
|