public class DSListStencil extends DSPartitionedStencil
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<IndexSpaceID> |
partitionList |
headerLength, partitioning, partitioningDimensionsArray, partitionListBytesLengthdimensionality, 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, volumedim, getIndexedBounds, getSpaceBoundsprotected java.util.ArrayList<IndexSpaceID> partitionList
public DSListStencil(RegularISPartitioning partitioning)
public boolean set(IndexSpaceID id)
public boolean setElement(IndexSpaceID pid)
setElement in class DSStencilpublic boolean get(IndexSpaceID id)
protected void setElementFromOffset(int offset)
setElementFromOffset in class DSPartitionedStencilprotected long getIndexedOffset(int index)
getIndexedOffset in class DSPartitionedStencilpublic ISBounds getIndexedBounds(ISBounds stencilBounds, int index)
getIndexedBounds in class DSStencilpublic int size()
public void clear()
clear in class DSPartitionedStencilpublic static void main(java.lang.String[] argv)