public class ContiguousIterator extends IndexIterator
index
Constructor and Description |
---|
ContiguousIterator(int length)
Constructor for an iterator over the items of a contiguous dataset that are
within the dimensions
|
ContiguousIterator(int length,
int isize)
Constructor for an iterator over the items of a contiguous dataset that are
within the dimensions
|
ContiguousIterator(int length,
int isize,
int element)
Constructor for an iterator over the items of a contiguous dataset that are
within the dimensions
|
Modifier and Type | Method and Description |
---|---|
int[] |
getPos() |
boolean |
hasNext() |
void |
reset()
Reset iterator
|
getShape
public ContiguousIterator(int length)
length
- of entire data arraypublic ContiguousIterator(int length, int isize)
length
- of entire data arrayisize
- number of elements in an itempublic ContiguousIterator(int length, int isize, int element)
length
- of entire data arrayisize
- number of elements in an itemelement
- element to start with (for compound datasets)public boolean hasNext()
hasNext
in class IndexIterator
public int[] getPos()
getPos
in class IndexIterator
public void reset()
IndexIterator
reset
in class IndexIterator
Copyright © 2014–2019 Eclipse Foundation. All rights reserved.