public class Odometer extends Object implements Iterator<Index>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Odometer.STATE |
| Modifier and Type | Field and Description |
|---|---|
protected List<DapDimension> |
dimset |
protected long[] |
endpoint |
protected Index |
index |
protected boolean |
ismulti |
protected int |
rank |
protected List<Slice> |
slices |
protected Odometer.STATE |
state |
| Constructor and Description |
|---|
Odometer() |
Odometer(List<Slice> set) |
Odometer(List<Slice> set,
List<DapDimension> dimset) |
| Modifier and Type | Method and Description |
|---|---|
static Odometer |
factory(List<Slice> slices) |
static Odometer |
factory(List<Slice> slices,
List<DapDimension> dimset) |
static Odometer |
factoryScalar() |
List<Slice> |
getSlices() |
List<Odometer> |
getSubOdometers() |
boolean |
hasNext() |
long |
index()
Compute the linear index
from the current odometer indices.
|
Index |
indices()
Return current set of indices
|
boolean |
isMulti() |
Index |
next() |
int |
rank()
Return odometer rank
|
void |
remove() |
protected void |
reset() |
Slice |
slice(int i)
Return ith slice
|
int |
step(int firstpos,
int lastpos) |
String |
toString() |
long |
totalSize()
Compute the total number of elements.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingprotected Odometer.STATE state
protected boolean ismulti
protected int rank
protected List<DapDimension> dimset
protected Index index
protected long[] endpoint
public Odometer()
public Odometer(List<Slice> set) throws DapException
DapExceptionpublic Odometer(List<Slice> set, List<DapDimension> dimset) throws DapException
DapExceptionpublic static Odometer factoryScalar()
public static Odometer factory(List<Slice> slices) throws DapException
DapExceptionpublic static Odometer factory(List<Slice> slices, List<DapDimension> dimset) throws DapException
DapExceptionprotected void reset()
public int rank()
public Slice slice(int i)
public long index()
public Index indices()
public long totalSize()
public int step(int firstpos,
int lastpos)
public boolean isMulti()