public class LayoutTiled extends 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
|
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 int getElemSize()
Layout
getElemSize
in interface Layout
public long getTotalNelems()
Layout
getTotalNelems
in interface Layout
public boolean hasNext()
Layout
public Layout.Chunk next()
Layout