DataBuffer and stores data internally
in float form.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv float[][] | bankdata
The array of data banks. |
| pack-priv float[] | data
A reference to the default data bank. |
| Access | Constructor and Description |
|---|---|
| public | DataBufferFloat(int
The number of elements in the DataBuffer. size)Constructs a |
| public | DataBufferFloat(int
The number of elements in each bank of the
size, int DataBuffer.The number of banks in the
numBanks)DataBuffer.Constructs a |
| public | DataBufferFloat(float[]
An array of dataArray, int floats to be used as the
first and only bank of this DataBuffer.The number of elements of the array to be used. size)Constructs a |
| public | DataBufferFloat(float[]
An array of dataArray, int floats to be used as the
first and only bank of this DataBuffer.The number of elements of the array to be used. size, int The offset of the first element of the array
that will be used. offset)Constructs a |
| public | DataBufferFloat(float[][]
An array of arrays of dataArray, int floats to be
used as the banks of this DataBuffer.The number of elements of each array to be used. size)Constructs a |
| public | DataBufferFloat(float[][]
An array of arrays of dataArray, int floats to be
used as the banks of this DataBuffer.The number of elements of each array to be used. size, int[] An array of integer offsets, one for each bank. offsets)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public float[][] | |
| public float[] | |
| public float[] | Returns: the data array specified bybank.the data array bank)Returns the data array for the specified bank. |
| public int | Returns: The data entry as anint.The desired data array element. i)Overrides java. Returns the requested data array element from the first
(default) bank as an |
| public int | Returns: The data entry as anint.The bank number. bank, int The desired data array element. i)Implements abstract java. Returns the requested data array element from the specified
bank as an |
| public double | Returns: The data entry as adouble.The desired data array element. i)Overrides java. Returns the requested data array element from the first
(default) bank as a |
| public double | Returns: The data entry as adouble.The bank number. bank, int The desired data array element. i)Overrides java. Returns the requested data array element from the specified
bank as a |
| public float | Returns: The data entry as afloat.The desired data array element. i)Overrides java. Returns the requested data array element from the first
(default) bank as a |
| public float | Returns: The data entry as afloat.The bank number. bank, int The desired data array element. i)Overrides java. Returns the requested data array element from the specified
bank as a |
| public void | setElem(int
The desired data array element. i, int The value to be set. val)Overrides java. Sets the requested data array element in the first (default)
bank to the given |
| public void | setElem(int
The bank number. bank, int The desired data array element. i, int The value to be set. val)Implements abstract java. Sets the requested data array element in the specified bank to
the given |
| public void | setElemDouble(int
The desired data array element. i, double The value to be set. val)Overrides java. Sets the requested data array element in the first (default)
bank to the given |
| public void | setElemDouble(int
The bank number. bank, int The desired data array element. i, double The value to be set. val)Overrides java. Sets the requested data array element in the specified bank to
the given |
| public void | setElemFloat(int
The desired data array element. i, float The value to be set. val)Overrides java. Sets the requested data array element in the first (default)
bank to the given |
| public void | setElemFloat(int
The bank number. bank, int The desired data array element. i, float The value to be set. val)Overrides java. Sets the requested data array element in the specified bank to
the given |
| bankdata | back to summary |
|---|---|
| pack-priv float[][] bankdata The array of data banks. | |
| data | back to summary |
|---|---|
| pack-priv float[] data A reference to the default data bank. | |
| DataBufferFloat | back to summary |
|---|---|
| public DataBufferFloat(int size) Constructs a
| |
| DataBufferFloat | back to summary |
|---|---|
| public DataBufferFloat(int size, int numBanks) Constructs a
| |
| DataBufferFloat | back to summary |
|---|---|
| public DataBufferFloat(float[] dataArray, int size) Constructs a
Note that
| |
| DataBufferFloat | back to summary |
|---|---|
| public DataBufferFloat(float[] dataArray, int size, int offset) Constructs a
Note that
| |
| DataBufferFloat | back to summary |
|---|---|
| public DataBufferFloat(float[][] dataArray, int size) Constructs a
Note that
| |
| DataBufferFloat | back to summary |
|---|---|
| public DataBufferFloat(float[][] dataArray, int size, int[] offsets) Constructs a
Note that
| |
| getBankData | back to summary |
|---|---|
| public float[][] getBankData() Returns the data array for all banks.
Note that calling this method may cause this
| |
| getData | back to summary |
|---|---|
| public float[] getData() Returns the default (first)
Note that calling this method may cause this
| |
| getData | back to summary |
|---|---|
| public float[] getData(int bank) Returns the data array for the specified bank.
Note that calling this method may cause this
| |
| getElem | back to summary |
|---|---|
| public int getElem(int i) Overrides java. Returns the requested data array element from the first
(default) bank as an
| |
| getElem | back to summary |
|---|---|
| public int getElem(int bank, int i) Implements abstract java. Returns the requested data array element from the specified
bank as an
| |
| getElemDouble | back to summary |
|---|---|
| public double getElemDouble(int i) Overrides java. Returns the requested data array element from the first
(default) bank as a
| |
| getElemDouble | back to summary |
|---|---|
| public double getElemDouble(int bank, int i) Overrides java. Returns the requested data array element from the specified
bank as a
| |
| getElemFloat | back to summary |
|---|---|
| public float getElemFloat(int i) Overrides java. Returns the requested data array element from the first
(default) bank as a
| |
| getElemFloat | back to summary |
|---|---|
| public float getElemFloat(int bank, int i) Overrides java. Returns the requested data array element from the specified
bank as a
| |
| setElem | back to summary |
|---|---|
| public void setElem(int i, int val) Overrides java. Sets the requested data array element in the first (default)
bank to the given
| |
| setElem | back to summary |
|---|---|
| public void setElem(int bank, int i, int val) Implements abstract java. Sets the requested data array element in the specified bank to
the given
| |
| setElemDouble | back to summary |
|---|---|
| public void setElemDouble(int i, double val) Overrides java. Sets the requested data array element in the first (default)
bank to the given
| |
| setElemDouble | back to summary |
|---|---|
| public void setElemDouble(int bank, int i, double val) Overrides java. Sets the requested data array element in the specified bank to
the given
| |
| setElemFloat | back to summary |
|---|---|
| public void setElemFloat(int i, float val) Overrides java. Sets the requested data array element in the first (default)
bank to the given
| |
| setElemFloat | back to summary |
|---|---|
| public void setElemFloat(int bank, int i, float val) Overrides java. Sets the requested data array element in the specified bank to
the given
| |