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.

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.
 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, 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, 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

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