ucar.ma2
Class Index0D
java.lang.Object
ucar.ma2.Index
ucar.ma2.Index0D
- All Implemented Interfaces:
- java.lang.Cloneable
public class Index0D
- extends Index
Specialization of Index for rank 0 arrays.
- Version:
- $Revision:51 $ $Date:2006-07-12 17:13:13Z $
- Author:
- caron
- See Also:
Index
|
Constructor Summary |
Index0D(int[] shape)
|
|
Method Summary |
java.lang.Object |
clone()
|
int |
currentElement()
Get the current element's index into the 1D backing array. |
protected int |
incr()
Increment the current element by 1. |
void |
setDim(int dim,
int value)
set current element at dimension dim to v |
| Methods inherited from class ucar.ma2.Index |
computeSize, factory, getCurrentCounter, getIndexName, getRank, getShape, getSize, precalc, set, set, set, set, set, set, set, set, set0, set1, set2, set3, set4, set5, set6, setIndexName, toString, toStringDebug |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Index0D
public Index0D(int[] shape)
currentElement
public int currentElement()
- Description copied from class:
Index
- Get the current element's index into the 1D backing array.
- Overrides:
currentElement in class Index
incr
protected int incr()
- Description copied from class:
Index
- Increment the current element by 1. Used by IndexIterator.
General rank, with subclass specialization.
- Overrides:
incr in class Index
- Returns:
- currentElement()
setDim
public void setDim(int dim,
int value)
- Description copied from class:
Index
- set current element at dimension dim to v
- Overrides:
setDim in class Index
clone
public java.lang.Object clone()
- Overrides:
clone in class Index