public class DSListStencil extends DSPartitionedStencil
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<IndexSpaceID> |
partitionList |
headerLength, partitioning, partitioningDimensionsArray, partitionListBytesLength
dimensionality, space
Constructor and Description |
---|
DSListStencil(RegularISPartitioning partitioning)
Construct a stencil that identifies areas of interest using a partitioning.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear this stencil of all elements.
|
boolean |
get(IndexSpaceID id)
Return true if the given id maps to an active stencil element, false otherwise.
|
ISBounds |
getIndexedBounds(ISBounds stencilBounds,
int index)
Set the given ISBounds to a shape equal to the indexed stencil element.
|
protected long |
getIndexedOffset(int index)
Return the partition offset corresponding to the given index.
|
static void |
main(java.lang.String[] argv) |
boolean |
set(IndexSpaceID id)
Set the stencil element containing the id to "active".
|
boolean |
setElement(IndexSpaceID pid)
Set the stencil element with index corresponding to id to "active.
|
protected void |
setElementFromOffset(int offset)
Set the element corresponding to the 1D offset to be active.
|
int |
size()
return number of element contained by this stencil
|
chooseBytesPerValue, getPartitionDimensions, getPartitionDimensionsArray, getPartitioningDimensions, getPartitionListBytes, getPartitionListBytesLength, inPartitioningBounds, inPartitioningBounds, partitionVolume, setPartitionListFromBytes, toString, toString, volume
dim, getIndexedBounds, getSpaceBounds
protected java.util.ArrayList<IndexSpaceID> partitionList
public DSListStencil(RegularISPartitioning partitioning)
public boolean set(IndexSpaceID id)
public boolean setElement(IndexSpaceID pid)
setElement
in class DSStencil
public boolean get(IndexSpaceID id)
protected void setElementFromOffset(int offset)
setElementFromOffset
in class DSPartitionedStencil
protected long getIndexedOffset(int index)
getIndexedOffset
in class DSPartitionedStencil
public ISBounds getIndexedBounds(ISBounds stencilBounds, int index)
getIndexedBounds
in class DSStencil
public int size()
public void clear()
clear
in class DSPartitionedStencil
public static void main(java.lang.String[] argv)