| Modifier and Type | Class and Description |
|---|---|
static class |
Odometer.ScalarOdometer |
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
count |
protected long[] |
declsize |
protected DapDimension[] |
dimset |
protected long[] |
first |
protected long[] |
index |
protected int |
rank |
protected long[] |
stop |
protected long[] |
stride |
| Constructor and Description |
|---|
Odometer() |
Odometer(List<DapDimension> dimset) |
Odometer(List<Slice> set,
List<DapDimension> dimset) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fill(int i,
long first,
long stop,
long stride) |
long[] |
getIndices()
Get the current set of indices
|
static Odometer.ScalarOdometer |
getScalarOdometer() |
boolean |
hasNext() |
long |
index()
Compute the linear index
from the current odometer indices.
|
Boolean |
next() |
void |
remove() |
protected void |
setDeclsizes(List<DapDimension> dimset) |
protected void |
setup(int rank) |
String |
toString() |
long |
totalSize()
Compute the total number of elements.
|
protected int rank
protected long[] first
protected long[] stop
protected long[] stride
protected long[] count
protected long[] declsize
protected DapDimension[] dimset
protected long[] index
public Odometer()
public Odometer(List<DapDimension> dimset) throws DapException
DapExceptionpublic Odometer(List<Slice> set, List<DapDimension> dimset) throws DapException
DapExceptionpublic static Odometer.ScalarOdometer getScalarOdometer()
protected void setDeclsizes(List<DapDimension> dimset) throws DapException
DapExceptionprotected void fill(int i,
long first,
long stop,
long stride)
protected void setup(int rank)
public long index()
public long totalSize()
public long[] getIndices()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.