public class Odometer
extends java.lang.Object
implements java.util.Iterator<java.lang.Long>
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
Odometer.STATE  | 
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
contiguousdelta  | 
protected DapDimension[] | 
dimset  | 
protected long[] | 
endpoint  | 
protected long[] | 
indices  | 
protected int | 
rank  | 
protected Slice[] | 
slices  | 
protected Odometer.STATE | 
state  | 
protected boolean | 
usecontiguous  | 
| Constructor and Description | 
|---|
Odometer()  | 
Odometer(java.util.List<DapDimension> dimset,
        boolean usecontiguous)  | 
Odometer(java.util.List<Slice> set,
        java.util.List<DapDimension> dimset,
        boolean usecontiguous)  | 
| Modifier and Type | Method and Description | 
|---|---|
static Odometer | 
factory(java.util.List<Slice> slices,
       java.util.List<DapDimension> dimset,
       boolean usecontiguous)  | 
java.util.List<Slice> | 
getContiguous()  | 
long[] | 
getIndices()
Get the current set of indices 
 | 
boolean | 
hasNext()  | 
long | 
index()
Compute the linear index
 from the current odometer indices. 
 | 
boolean | 
isContiguous()  | 
java.lang.Long | 
next()  | 
void | 
remove()  | 
protected void | 
reset()  | 
java.lang.String | 
toString()  | 
long | 
totalSize()
Compute the total number of elements. 
 | 
protected Odometer.STATE state
protected int rank
protected Slice[] slices
protected DapDimension[] dimset
protected boolean usecontiguous
protected int contiguousdelta
protected long[] indices
protected long[] endpoint
public Odometer()
public Odometer(java.util.List<DapDimension> dimset, boolean usecontiguous) throws DapException
DapExceptionpublic Odometer(java.util.List<Slice> set, java.util.List<DapDimension> dimset, boolean usecontiguous) throws DapException
DapExceptionpublic static Odometer factory(java.util.List<Slice> slices, java.util.List<DapDimension> dimset, boolean usecontiguous) throws DapException
DapExceptionprotected void reset()
public java.lang.String toString()
toString in class java.lang.Objectpublic long index()
public long totalSize()
public long[] getIndices()
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Long>public java.lang.Long next()
next in interface java.util.Iterator<java.lang.Long>public void remove()
remove in interface java.util.Iterator<java.lang.Long>public boolean isContiguous()
public java.util.List<Slice> getContiguous()