Package com.jogamp.gluegen.cgram.types
Class SizeThunk
java.lang.Object
com.jogamp.gluegen.cgram.types.SizeThunk
- All Implemented Interfaces:
TypeComparator.SemanticEqualityOp,Cloneable
public abstract class SizeThunk
extends Object
implements Cloneable, TypeComparator.SemanticEqualityOp
Provides a level of indirection between the definition of a type's
size and the absolute value of this size. Necessary when
generating glue code for two different CPU architectures (e.g.,
32-bit and 64-bit) from the same internal representation of the
various types involved.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SizeThunkstatic SizeThunkclone()abstract longcomputeAlignment(MachineDataInfo machDesc) abstract longcomputeSize(MachineDataInfo machDesc) static SizeThunkconstant(int constant) final booleanfinal booleanSemantic equality test for Types exclusive its givenname.final booleanfinal inthashCode()final intSemantic hashcode for Types exclusive its givenname.static SizeThunkstatic SizeThunkstatic voidsetRelaxedEqualSemanticsTest(boolean v)
-
Field Details
-
INT8
-
INT16
-
INT32
-
INTxx
-
LONG
-
INT64
-
FLOAT
-
DOUBLE
-
POINTER
-
-
Method Details
-
setRelaxedEqualSemanticsTest
public static void setRelaxedEqualSemanticsTest(boolean v) -
clone
-
hasFixedNativeSize
public final boolean hasFixedNativeSize() -
computeSize
-
computeAlignment
-
hashCode
public final int hashCode() -
equals
-
hashCodeSemantics
public final int hashCodeSemantics()Description copied from interface:TypeComparator.SemanticEqualityOpSemantic hashcode for Types exclusive its givenname.- Specified by:
hashCodeSemanticsin interfaceTypeComparator.SemanticEqualityOp- See Also:
-
equalSemantics
Description copied from interface:TypeComparator.SemanticEqualityOpSemantic equality test for Types exclusive its givenname.- Specified by:
equalSemanticsin interfaceTypeComparator.SemanticEqualityOp- See Also:
-
add
-
mul
-
align
-
max
-
constant
-