ucar.ma2
Class Index0D

java.lang.Object
  extended by ucar.ma2.Index
      extended by ucar.ma2.Index0D
All Implemented Interfaces:
java.lang.Cloneable

public class Index0D
extends Index

Specialization of Index for rank 0 arrays.

Author:
caron
See Also:
Index

Field Summary
 
Fields inherited from class ucar.ma2.Index
scalarIndex
 
Constructor Summary
Index0D(int[] shape)
           
 
Method Summary
 java.lang.Object clone()
           
 int currentElement()
          Get the current element's index into the 1D backing array.
 int incr()
          Increment the current element by 1.
 
Methods inherited from class ucar.ma2.Index
computeSize, factory, getCurrentCounter, getRank, getShape, getShape, getSize, set, set, set, set, set, set, set, set, set0, set1, set2, set3, set4, set5, set6, setCurrentCounter, setDim, toString, toStringDebug
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Index0D

public Index0D(int[] shape)
Method Detail

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
Returns:
the current element's index into the 1D backing array.

incr

public 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()

clone

public java.lang.Object clone()
Overrides:
clone in class Index