@Platform(include="<nix/Dimensions.hpp>") @Platform(value="linux",link="nix@.1",preload="hdf5@.7") @Platform(value="windows",link="nix",preload={"hdf5","msvcp120","msvcr120","szip","zlib"}) @Namespace(value="nix") public class Dimension<T extends Dimension> extends ImplContainer implements Comparable<T>
The real dimension descriptor are defined in three subclasses: RangeDimension
,
SampledDimension
and SetDimension
.
RangeDimension
,
SampledDimension
,
SetDimension
Constructor and Description |
---|
Dimension()
Constructor that creates an uninitialized Dimension.
|
Modifier and Type | Method and Description |
---|---|
RangeDimension |
asRangeDimension()
Returns as
RangeDimension . |
SampledDimension |
asSampledDimension()
Returns as
SampledDimension . |
SetDimension |
asSetDimension()
Returns as
SetDimension . |
int |
compareTo(T dimension) |
int |
getDimensionType()
The type of the dimension.
|
long |
getIndex()
The actual dimension that is described by the dimension descriptor.
|
boolean |
isNone()
Check if entity is null
|
isInitialized
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, position, put, setNull, sizeof, toString, zero
public Dimension()
Calling any method on an uninitialized dimension will throw a RuntimeException
.
@Cast(value="bool") public boolean isNone()
ImplContainer
isNone
in class ImplContainer
@Name(value="index") @Cast(value="size_t") public long getIndex()
The index of the dimension entity representing the dimension of the actual data that is defined by this descriptor.
@Name(value="dimensionType") @ByVal @Cast(value="nix::DimensionType") public int getDimensionType()
This field indicates whether the dimension is a SampledDimension, SetDimension or RangeDimension.
DimensionType
DimensionType
,
RangeDimension
,
SampledDimension
,
*
@ByVal public SetDimension asSetDimension()
SetDimension
.@ByVal public SampledDimension asSampledDimension()
SampledDimension
.@ByVal public RangeDimension asRangeDimension()
RangeDimension
.public int compareTo(T dimension)
compareTo
in interface Comparable<T extends Dimension>
Copyright © 2016. All rights reserved.