public class LayoutBBTiled extends java.lang.Object implements LayoutBB
| Modifier and Type | Class and Description |
|---|---|
static interface |
LayoutBBTiled.DataChunk
A data chunk
|
static interface |
LayoutBBTiled.DataChunkIterator
An iterator over the data chunks.
|
| Constructor and Description |
|---|
LayoutBBTiled(LayoutBBTiled.DataChunkIterator chunkIterator,
int[] chunkSize,
int elemSize,
Section wantSection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getElemSize()
Get size of each element in bytes.
|
long |
getTotalNelems()
Get total number of elements in the wanted subset.
|
boolean |
hasNext()
Is there more to do
|
LayoutBB.Chunk |
next()
Get the next chunk
|
java.lang.String |
toString() |
public LayoutBBTiled(LayoutBBTiled.DataChunkIterator chunkIterator, int[] chunkSize, int elemSize, Section wantSection)
chunkIterator - iterator over all data chunkschunkSize - all chunks assumed to be the same sizeelemSize - size of an element in bytes.wantSection - the wanted section of data, contains a List of Range objects. Must be complete.public int getElemSize()
LayoutBBgetElemSize in interface LayoutgetElemSize in interface LayoutBBpublic long getTotalNelems()
LayoutBBgetTotalNelems in interface LayoutgetTotalNelems in interface LayoutBBpublic boolean hasNext()
LayoutBBpublic LayoutBB.Chunk next()
LayoutBBpublic java.lang.String toString()
toString in class java.lang.Object