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
Represents a bitfield in a struct.
-
Field Summary
Fields inherited from class com.jogamp.gluegen.cgram.types.Type
relaxedEqSem -
Constructor Summary
ConstructorsConstructorDescriptionBitType(IntType underlyingType, int sizeInBits, int lsbOffset, int cvAttributes, ASTLocusTag astLocus) -
Method Summary
Modifier and TypeMethodDescriptionasBit()Casts this to a BitType or returns null if not a BitType.protected booleanequalSemanticsImpl(Type arg) protected booleanequalsImpl(Type arg) intOffset from the least-significant bit (LSB) of the LSB of this typeintSize in bits of this type.protected intprotected intvoidvisit(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, toStringMethods inherited from class com.jogamp.gluegen.cgram.types.PrimitiveType
isPrimitiveMethods inherited from class com.jogamp.gluegen.cgram.types.Type
arrayDimension, asArray, asCompound, asDouble, asEnum, asFloat, asFunction, asPointer, asVoid, clearCache, clone, equals, equalSemantics, getASTLocusTag, getBaseElementType, getCName, getCVAttributes, getCVAttributesString, getDebugString, getName, getName, getSize, getSize, getTargetType, hashCode, hashCodeSemantics, isAnon, isArray, isBaseTypeConst, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isFunctionPointer, isInt, isPointer, isTypedef, isVoid, isVolatile, newCVVariant, pointerDepth
-
Constructor Details
-
BitType
public BitType(IntType underlyingType, int sizeInBits, int lsbOffset, int cvAttributes, ASTLocusTag astLocus)
-
-
Method Details
-
hashCodeImpl
protected int hashCodeImpl()- Overrides:
hashCodeImplin classIntType
-
equalsImpl
- Overrides:
equalsImplin classIntType
-
hashCodeSemanticsImpl
protected int hashCodeSemanticsImpl()- Overrides:
hashCodeSemanticsImplin classIntType
-
equalSemanticsImpl
- Overrides:
equalSemanticsImplin classIntType
-
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
Description copied from class:TypeTraverse thisTypeand all of its component types; for example, the return type and argument types of a FunctionType.
-