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 vectorpRing {
11
private long swigCPtr;
12
protected boolean swigCMemOwn;
14
protected vectorpRing(long cPtr, boolean cMemoryOwn) {
15
swigCMemOwn = cMemoryOwn;
19
protected static long getCPtr(vectorpRing 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_vectorpRing(swigCPtr);
35
public vectorpRing() {
36
this(openbabelJNI.new_vectorpRing__SWIG_0(), true);
39
public vectorpRing(long n) {
40
this(openbabelJNI.new_vectorpRing__SWIG_1(n), true);
44
return openbabelJNI.vectorpRing_size(swigCPtr, this);
47
public long capacity() {
48
return openbabelJNI.vectorpRing_capacity(swigCPtr, this);
51
public void reserve(long n) {
52
openbabelJNI.vectorpRing_reserve(swigCPtr, this, n);
55
public boolean isEmpty() {
56
return openbabelJNI.vectorpRing_isEmpty(swigCPtr, this);
60
openbabelJNI.vectorpRing_clear(swigCPtr, this);
63
public void add(OBRing x) {
64
openbabelJNI.vectorpRing_add(swigCPtr, this, OBRing.getCPtr(x), x);
67
public OBRing get(int i) {
68
long cPtr = openbabelJNI.vectorpRing_get(swigCPtr, this, i);
69
return (cPtr == 0) ? null : new OBRing(cPtr, false);
72
public void set(int i, OBRing val) {
73
openbabelJNI.vectorpRing_set(swigCPtr, this, i, OBRing.getCPtr(val), val);