public class LayoutTiled extends java.lang.Object implements Layout
| Modifier and Type | Class and Description |
|---|---|
static class |
LayoutTiled.DataChunk
The chunks of a tiled layout.
|
static interface |
LayoutTiled.DataChunkIterator
An iterator over DataChunk's
|
Layout.Chunk| Constructor and Description |
|---|
LayoutTiled(LayoutTiled.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
|
Layout.Chunk |
next()
Get the next chunk
|
java.lang.String |
toString() |
public LayoutTiled(LayoutTiled.DataChunkIterator chunkIterator, int[] chunkSize, int elemSize, Section wantSection)
chunkIterator - iterator over all available 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 completepublic long getTotalNelems()
LayoutgetTotalNelems in interface Layoutpublic int getElemSize()
LayoutgetElemSize in interface Layoutpublic boolean hasNext()
Layoutpublic Layout.Chunk next()
Layoutpublic java.lang.String toString()
toString in class java.lang.Object