1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
10
public class vectorInt {
11
private long swigCPtr;
12
protected boolean swigCMemOwn;
14
protected vectorInt(long cPtr, boolean cMemoryOwn) {
15
swigCMemOwn = cMemoryOwn;
19
protected static long getCPtr(vectorInt obj) {
20
return (obj == null) ? 0 : obj.swigCPtr;
23
protected void finalize() {
27
public synchronized void delete() {
28
if(swigCPtr != 0 && swigCMemOwn) {
30
openbabelJNI.delete_vectorInt(swigCPtr);
36
this(openbabelJNI.new_vectorInt__SWIG_0(), true);
39
public vectorInt(long n) {
40
this(openbabelJNI.new_vectorInt__SWIG_1(n), true);
44
return openbabelJNI.vectorInt_size(swigCPtr, this);
47
public long capacity() {
48
return openbabelJNI.vectorInt_capacity(swigCPtr, this);
51
public void reserve(long n) {
52
openbabelJNI.vectorInt_reserve(swigCPtr, this, n);
55
public boolean isEmpty() {
56
return openbabelJNI.vectorInt_isEmpty(swigCPtr, this);
60
openbabelJNI.vectorInt_clear(swigCPtr, this);
63
public void add(int x) {
64
openbabelJNI.vectorInt_add(swigCPtr, this, x);
67
public int get(int i) {
68
return openbabelJNI.vectorInt_get(swigCPtr, this, i);
71
public void set(int i, int x) {
72
openbabelJNI.vectorInt_set(swigCPtr, this, i, x);