All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
edu.nyu.acsys.CVC4.vectorType Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package edu.nyu.acsys.CVC4;
public class vectorType extends java.util.AbstractList implements java.util.RandomAccess {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected vectorType(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(vectorType obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
CVC4JNI.delete_vectorType(swigCPtr);
}
swigCPtr = 0;
}
}
public vectorType(Type[] initialElements) {
this();
reserve(initialElements.length);
for (Type element : initialElements) {
add(element);
}
}
public vectorType(Iterable initialElements) {
this();
for (Type element : initialElements) {
add(element);
}
}
public Type get(int index) {
return doGet(index);
}
public Type set(int index, Type e) {
return doSet(index, e);
}
public boolean add(Type e) {
modCount++;
doAdd(e);
return true;
}
public void add(int index, Type e) {
modCount++;
doAdd(index, e);
}
public Type remove(int index) {
modCount++;
return doRemove(index);
}
protected void removeRange(int fromIndex, int toIndex) {
modCount++;
doRemoveRange(fromIndex, toIndex);
}
public int size() {
return doSize();
}
public vectorType() {
this(CVC4JNI.new_vectorType__SWIG_0(), true);
}
public vectorType(vectorType other) {
this(CVC4JNI.new_vectorType__SWIG_1(vectorType.getCPtr(other), other), true);
}
public long capacity() {
return CVC4JNI.vectorType_capacity(swigCPtr, this);
}
public void reserve(long n) {
CVC4JNI.vectorType_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return CVC4JNI.vectorType_isEmpty(swigCPtr, this);
}
public void clear() {
CVC4JNI.vectorType_clear(swigCPtr, this);
}
public vectorType(int count, Type value) {
this(CVC4JNI.new_vectorType__SWIG_2(count, Type.getCPtr(value), value), true);
}
private int doSize() {
return CVC4JNI.vectorType_doSize(swigCPtr, this);
}
private void doAdd(Type x) {
CVC4JNI.vectorType_doAdd__SWIG_0(swigCPtr, this, Type.getCPtr(x), x);
}
private void doAdd(int index, Type x) {
CVC4JNI.vectorType_doAdd__SWIG_1(swigCPtr, this, index, Type.getCPtr(x), x);
}
private Type doRemove(int index) {
return new Type(CVC4JNI.vectorType_doRemove(swigCPtr, this, index), true);
}
private Type doGet(int index) {
return new Type(CVC4JNI.vectorType_doGet(swigCPtr, this, index), false);
}
private Type doSet(int index, Type val) {
return new Type(CVC4JNI.vectorType_doSet(swigCPtr, this, index, Type.getCPtr(val), val), true);
}
private void doRemoveRange(int fromIndex, int toIndex) {
CVC4JNI.vectorType_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
}
}