|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectiicm.vrml.pwutils.DoubleArray
public class DoubleArray
DoubleArray - dynamic array of double type values better time and memory efficiency than Vector, double[] accessible in native code Copyright (c) 1996 IICM
| Field Summary | |
|---|---|
private int |
count_
|
private double[] |
data_
|
| Constructor Summary | |
|---|---|
DoubleArray()
create with default length |
|
DoubleArray(double[] dat)
copy initial data from another double[]. |
|
DoubleArray(DoubleArray dat)
copy initial data from another DoubleArray (non-null). |
|
DoubleArray(int len)
create with initial buffer length |
|
| Method Summary | |
|---|---|
void |
append(double d)
append one double element |
boolean |
clearData()
clear the array |
private void |
enlarge(int newsize)
enlarge the data array to its new size; does not change count_ |
int |
getCount()
get count of used array members. |
double[] |
getData()
get data array. |
void |
setData(double[] dat)
copy data from a double[] |
void |
setData(double[] dat,
int n)
copy first n elements of a double[] |
void |
setData(DoubleArray dat)
copy data from another DoubleArray |
void |
setSize(int n)
set number of used array elements (ensures there is enough storage) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double[] data_
private int count_
| Constructor Detail |
|---|
public DoubleArray()
public DoubleArray(int len)
public DoubleArray(double[] dat)
public DoubleArray(DoubleArray dat)
| Method Detail |
|---|
public void setData(DoubleArray dat)
public void setData(double[] dat)
public void setData(double[] dat,
int n)
public final int getCount()
public final double[] getData()
public void append(double d)
public void setSize(int n)
public boolean clearData()
private void enlarge(int newsize)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||