public class ISIterator extends IndexSpaceID implements java.lang.Cloneable, SDBIterator
Constructor and Description |
---|
ISIterator(ISBounds db)
Constructor taking an ISBounds, which specifies the IndexSpace
|
ISIterator(ISBounds db,
AxisOrdering ord)
Constructor taking an ISBounds, which specifies the IndexSpace,
and the AxisOrdering which specifies the axis incrementation order
|
ISIterator(ISBounds db,
AxisOrdering ord,
int[] steps)
Constructor taking an ISBounds, AxisOrdering and steps array
|
ISIterator(ISBounds db,
int[] steps)
Constructor taking an ISBounds, which specifies the IndexSpace
and the steps array allowing ISIterator increment step other than 1
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Return a copy of this ISIterator
|
boolean |
containedBy(ISBounds db)
Returns true if this IndexSpaceID is contained by the
ISBounds parameter, or false otherwise.
|
IndexSpaceID |
copy()
Deprecated.
|
IndexSpaceID |
copyID()
Return an IntegerIndexSpaceID corresponding to the current position.
|
int |
dim()
Returns the dimensionality of this ISIterator.
|
void |
end()
Set the iterator value to the last valid value in the iteration.
|
int |
getAxisLength(int axis)
Return the number of elements that lie along the specified
axis in the iterator's bounds.
|
int[] |
getAxisLengthArray()
Returns an array of ints representing the dimensions of
the space being iterated over.
|
IndexSpaceID |
getAxisLengths()
Returns an IndexSpaceID representing the dimensions of
the space being iterated over.
|
AxisOrdering |
getAxisOrdering()
Return the AxisOrdering for this iterator.
|
ISBounds |
getBounds()
Return the ISBounds over which this ISIterator is iterating.
|
int |
getCoord(int axisNumber)
Get the value corresponding to the specified axis.
|
int[] |
getCoords(int[] coords)
Fill the array argument with the coordinate values for this ISID.
|
AxisOrdering |
getOrdering()
Deprecated.
|
ISBounds |
getSpaceBounds()
Deprecated.
Use getBounds()
|
boolean |
hasMoreElements()
Return true if this ISIterator can be incremented.
|
void |
init()
Initilize this ISiterator
|
static void |
main(java.lang.String[] args) |
void |
moveTo(IndexSpaceID newOrigin)
Reposition the bounds of this iterator so that its lower bound
is at the position specified by the argument.
|
void |
moveTo(int[] newOrigin)
Reposition the bounds of this iterator so that its lower bound
is at the position specified by the argument.
|
boolean |
next()
Increment the ISIterator to the next position.
|
int[] |
refLowerArray()
Return a reference to the lower bounds of the iteration space.
|
int[] |
refUpperArray()
Return a reference to the lower bounds of the iteration space.
|
IndexSpaceID |
relativeLocation()
Map the current position of this iterator to an equivalent
IndexSpaceID relative to the lower bound of this iterator
|
IndexSpaceID |
relativeLocation(IndexSpaceID isid)
Map the current position of this iterator to an equivalent
IndexSpaceID relative to the lower bound of this iterator.
|
void |
setBounds(ISBounds bound)
Change the IndexSpace to which this ISIterator is bound
|
void |
setCoord(int axisNumber,
int value)
Set the specified axis to the specified value.
|
void |
setSpaceBounds(ISBounds bound)
Deprecated.
Use setBounds( ISBounds )
|
void |
setSteps(int[] newSteps)
Define a new steps array for the iterator
|
java.lang.String |
toString()
Return description of this ISIterator
|
boolean |
valid()
Return true if the current position is a valid position in the IndexSpace.
|
public ISIterator(ISBounds db)
public ISIterator(ISBounds db, AxisOrdering ord)
public ISIterator(ISBounds db, int[] steps)
public ISIterator(ISBounds db, AxisOrdering ord, int[] steps)
public IndexSpaceID copyID()
copyID
in class IndexSpaceID
public java.lang.Object clone()
public IndexSpaceID copy()
public java.lang.String toString()
toString
in class IndexSpaceID
public final AxisOrdering getAxisOrdering()
public final AxisOrdering getOrdering()
public final int getAxisLength(int axis)
public final int[] getAxisLengthArray()
public final IndexSpaceID getAxisLengths()
public IndexSpaceID relativeLocation()
public IndexSpaceID relativeLocation(IndexSpaceID isid)
public void moveTo(IndexSpaceID newOrigin)
public void moveTo(int[] newOrigin)
public void setBounds(ISBounds bound)
public void setSteps(int[] newSteps)
public void setSpaceBounds(ISBounds bound)
public ISBounds getBounds()
public ISBounds getSpaceBounds()
public int[] refLowerArray()
public int[] refUpperArray()
public void init()
init
in interface SDBIterator
public void end()
end
in interface SDBIterator
public int getCoord(int axisNumber)
getCoord
in class IndexSpaceID
public int[] getCoords(int[] coords)
getCoords
in class IndexSpaceID
public void setCoord(int axisNumber, int value)
public int dim()
public boolean valid()
valid
in interface SDBIterator
public boolean next()
next
in interface SDBIterator
public boolean hasMoreElements()
public boolean containedBy(ISBounds db)
containedBy
in class IndexSpaceID
public static void main(java.lang.String[] args)