Package com.jogamp.gluegen.cgram.types
Class BitType
- java.lang.Object
-
- com.jogamp.gluegen.cgram.types.Type
-
- com.jogamp.gluegen.cgram.types.PrimitiveType
-
- com.jogamp.gluegen.cgram.types.IntType
-
- com.jogamp.gluegen.cgram.types.BitType
-
- All Implemented Interfaces:
ASTLocusTag.ASTLocusTagProvider,TypeComparator.SemanticEqualityOp,Cloneable
public class BitType extends IntType implements Cloneable
Represents a bitfield in a struct.
-
-
Field Summary
-
Fields inherited from class com.jogamp.gluegen.cgram.types.Type
relaxedEqSem
-
-
Constructor Summary
Constructors Constructor Description BitType(IntType underlyingType, int sizeInBits, int lsbOffset, int cvAttributes, ASTLocusTag astLocus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitTypeasBit()Casts this to a BitType or returns null if not a BitType.protected booleanequalSemanticsImpl(Type arg)protected booleanequalsImpl(Type arg)intgetOffset()Offset from the least-significant bit (LSB) of the LSB of this typeintgetSizeInBits()Size in bits of this type.protected inthashCodeImpl()protected inthashCodeSemanticsImpl()voidvisit(TypeVisitor arg)Traverse thisTypeand all of its component types; for example, the return type and argument types of a FunctionType.-
Methods inherited from class com.jogamp.gluegen.cgram.types.IntType
asInt, getCName, isUnsigned, setTypedefName, toString
-
Methods inherited from class com.jogamp.gluegen.cgram.types.PrimitiveType
isPrimitive
-
Methods inherited from class com.jogamp.gluegen.cgram.types.Type
arrayDimension, asArray, asCompound, asDouble, asEnum, asFloat, asFunction, asPointer, asVoid, clearCache, clone, equals, equalSemantics, getArrayBaseOrPointerTargetType, getASTLocusTag, getBaseType, getCName, getCVAttributes, getCVAttributesString, getDebugString, getName, getName, getSignature, getSize, getSize, getTargetFunction, getTargetType, hashCode, hashCodeSemantics, hasSize, isAnon, isArray, isBaseTypeConst, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isTypedef, isVoid, isVolatile, newCVVariant, pointerDepth
-
-
-
-
Constructor Detail
-
BitType
public BitType(IntType underlyingType, int sizeInBits, int lsbOffset, int cvAttributes, ASTLocusTag astLocus)
-
-
Method Detail
-
hashCodeImpl
protected int hashCodeImpl()
- Overrides:
hashCodeImplin classIntType
-
equalsImpl
protected boolean equalsImpl(Type arg)
- Overrides:
equalsImplin classIntType
-
hashCodeSemanticsImpl
protected int hashCodeSemanticsImpl()
- Overrides:
hashCodeSemanticsImplin classIntType
-
equalSemanticsImpl
protected boolean equalSemanticsImpl(Type arg)
- Overrides:
equalSemanticsImplin classIntType
-
asBit
public BitType asBit()
Description copied from class:TypeCasts this to a BitType or returns null if not a BitType.
-
getSizeInBits
public int getSizeInBits()
Size in bits of this type.
-
getOffset
public int getOffset()
Offset from the least-significant bit (LSB) of the LSB of this type
-
visit
public void visit(TypeVisitor arg)
Description copied from class:TypeTraverse thisTypeand all of its component types; for example, the return type and argument types of a FunctionType.
-
-