public abstract class GenericShortLongAccessType<T extends GenericShortLongAccessType<T>> extends AbstractIntegerType<T> implements NativeLongAccessType<T>
native
IntegerType
s that
encode their value into a 16bit short.Modifier and Type | Field and Description |
---|---|
protected ShortLongAccess |
dataAccess |
protected NativeLongAccessImg<?,? extends ShortLongAccess> |
img |
Constructor and Description |
---|
GenericShortLongAccessType() |
GenericShortLongAccessType(NativeLongAccessImg<?,? extends ShortLongAccess> shortStorage) |
GenericShortLongAccessType(short value) |
GenericShortLongAccessType(ShortLongAccess access) |
Modifier and Type | Method and Description |
---|---|
void |
add(T c) |
int |
compareTo(T c) |
void |
dec() |
void |
decIndex() |
void |
decIndex(long decrement)
Decrease the index into the current data array by
decrement
steps. |
void |
div(T c) |
int |
getBitsPerPixel() |
Fraction |
getEntitiesPerPixel()
Get the number of entities in the storage array required to store one
pixel value.
|
long |
getIndexLong()
Get the current index into the current data array.
|
protected short |
getValue() |
int |
hashCode() |
void |
inc() |
void |
incIndex() |
void |
incIndex(long increment)
Increases the index into the current data array by
increment
steps. |
void |
mul(double c) |
void |
mul(float c) |
void |
mul(T c) |
void |
set(T c)
Sets the value of another
Type . |
void |
setOne() |
protected void |
setValue(short f) |
void |
setZero() |
void |
sub(T c) |
String |
toString() |
void |
updateContainer(Object c) |
void |
updateIndex(long index)
Set the index into the current data array.
|
boolean |
valueEquals(T t) |
equals, getMinIncrement, getRealDouble, getRealFloat, setReal, setReal
getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, pow, pow, setImaginary, setImaginary
complexConjugate, setComplexNumber, setComplexNumber
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createSuitableNativeImg, duplicateTypeOnSameNativeImg, getNativeLongAccessTypeFactory
copy, createVariable
getBigInteger, getInteger, getIntegerLong, setBigInteger, setInteger, setInteger
getMaxValue, getMinValue
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary
pow
protected final NativeLongAccessImg<?,? extends ShortLongAccess> img
protected ShortLongAccess dataAccess
public GenericShortLongAccessType(NativeLongAccessImg<?,? extends ShortLongAccess> shortStorage)
public GenericShortLongAccessType(short value)
public GenericShortLongAccessType(ShortLongAccess access)
public GenericShortLongAccessType()
public Fraction getEntitiesPerPixel()
NativeLongAccessType
getEntitiesPerPixel
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
public void updateContainer(Object c)
updateContainer
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
protected short getValue()
protected void setValue(short f)
public void mul(float c)
mul
in interface MulFloatingPoint
mul
in class AbstractRealType<T extends GenericShortLongAccessType<T>>
public void mul(double c)
mul
in interface MulFloatingPoint
mul
in class AbstractRealType<T extends GenericShortLongAccessType<T>>
public void add(T c)
add
in interface Add<T extends GenericShortLongAccessType<T>>
add
in class AbstractRealType<T extends GenericShortLongAccessType<T>>
public void div(T c)
div
in interface Div<T extends GenericShortLongAccessType<T>>
div
in class AbstractRealType<T extends GenericShortLongAccessType<T>>
public void mul(T c)
mul
in interface Mul<T extends GenericShortLongAccessType<T>>
mul
in class AbstractRealType<T extends GenericShortLongAccessType<T>>
public void sub(T c)
sub
in interface Sub<T extends GenericShortLongAccessType<T>>
sub
in class AbstractRealType<T extends GenericShortLongAccessType<T>>
public int hashCode()
hashCode
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
public int compareTo(T c)
compareTo
in interface Comparable<T extends GenericShortLongAccessType<T>>
compareTo
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
public void set(T c)
Type
Type
.set
in interface Type<T extends GenericShortLongAccessType<T>>
set
in class AbstractRealType<T extends GenericShortLongAccessType<T>>
c
- the new valuepublic void setOne()
setOne
in interface SetOne
setOne
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
public void setZero()
setZero
in interface SetZero
setZero
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
public void inc()
inc
in interface RealType<T extends GenericShortLongAccessType<T>>
inc
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
public void dec()
dec
in interface RealType<T extends GenericShortLongAccessType<T>>
dec
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
public String toString()
toString
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
public void updateIndex(long index)
NativeLongAccessType
This is used by accessors (e.g., a Cursor
) to position the
NativeLongAccessType
in the container.
updateIndex
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
index
- the new array indexpublic long getIndexLong()
NativeLongAccessType
This is used by accessors (e.g., a Cursor
) to position the
NativeLongAccessType
in the container.
getIndexLong
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
public void incIndex()
incIndex
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
public void incIndex(long increment)
NativeLongAccessType
increment
steps.
This is used by accessors (e.g., a Cursor
) to position the
NativeLongAccessType
in the container.
incIndex
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
increment
- how many stepspublic void decIndex()
decIndex
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
public void decIndex(long decrement)
NativeLongAccessType
decrement
steps.
This is used by accessors (e.g., a Cursor
) to position the
NativeLongAccessType
in the container.
decIndex
in interface NativeLongAccessType<T extends GenericShortLongAccessType<T>>
decrement
- how many stepspublic int getBitsPerPixel()
getBitsPerPixel
in interface RealType<T extends GenericShortLongAccessType<T>>
public boolean valueEquals(T t)
valueEquals
in interface ValueEquals<T extends GenericShortLongAccessType<T>>
valueEquals
in class AbstractIntegerType<T extends GenericShortLongAccessType<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.