Top Description Fields Constructors Methods
com.jogamp.gluegen.cgram.types

public Class BitType

extends IntType
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
com.jogamp.gluegen.ASTLocusTag

Represents a bitfield in a struct.

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final IntType

Constructor Summary

AccessConstructor and Description
public
BitType(final IntType underlyingType, final int sizeInBits, final int lsbOffset, final int cvAttributes, final ASTLocusTag astLocus)

private
BitType(final BitType o, final int cvAttributes, final ASTLocusTag astLocus)

Method Summary

Modifier and TypeMethod and Description
public BitType
asBit()

Overrides com.jogamp.gluegen.cgram.types.Type.asBit.

Casts this to a BitType or returns null if not a BitType.
protected boolean
protected boolean
public int
getOffset()

Offset from the least-significant bit (LSB) of the LSB of this type

public int
getSizeInBits()

Size in bits of this type.

protected int
protected int
pack-priv Type
newVariantImpl(final boolean
true if new variant is intended to have new cvAttributes
newCVVariant
,
final int
the cvAttributes to be used
cvAttributes
,
final ASTLocusTag
the ASTLocusTag to be used
astLocus
)

Overrides com.jogamp.gluegen.cgram.types.IntType.newVariantImpl.

Create a new variant of this type matching the given parameter

Implementation must use Type's copy-ctor: Type(Type, int, ASTLocusTag)!

public void
visit(final TypeVisitor arg)

Overrides com.jogamp.gluegen.cgram.types.Type.visit.

Traverse this Type and all of its component types; for example, the return type and argument types of a FunctionType.
Inherited from com.jogamp.gluegen.cgram.types.IntType:
asIntgetCNameisUnsignedsetTypedefNametoString

Field Detail

offsetback to summary
private final int offset
sizeInBitsback to summary
private final int sizeInBits
underlyingTypeback to summary
private final IntType underlyingType

Constructor Detail

BitTypeback to summary
public BitType(final IntType underlyingType, final int sizeInBits, final int lsbOffset, final int cvAttributes, final ASTLocusTag astLocus)
BitTypeback to summary
private BitType(final BitType o, final int cvAttributes, final ASTLocusTag astLocus)

Method Detail

asBitback to summary
public BitType asBit()

Overrides com.jogamp.gluegen.cgram.types.Type.asBit.

Doc from com.jogamp.gluegen.cgram.types.Type.asBit.

Casts this to a BitType or returns null if not a BitType.

Annotations
@Override
equalSemanticsImplback to summary
protected boolean equalSemanticsImpl(final Type arg)

Overrides com.jogamp.gluegen.cgram.types.IntType.equalSemanticsImpl.

Annotations
@Override
equalsImplback to summary
protected boolean equalsImpl(final Type arg)

Overrides com.jogamp.gluegen.cgram.types.IntType.equalsImpl.

Annotations
@Override
getOffsetback to summary
public int getOffset()

Offset from the least-significant bit (LSB) of the LSB of this type

getSizeInBitsback to summary
public int getSizeInBits()

Size in bits of this type.

hashCodeImplback to summary
protected int hashCodeImpl()

Overrides com.jogamp.gluegen.cgram.types.IntType.hashCodeImpl.

Annotations
@Override
hashCodeSemanticsImplback to summary
protected int hashCodeSemanticsImpl()

Overrides com.jogamp.gluegen.cgram.types.IntType.hashCodeSemanticsImpl.

Annotations
@Override
newVariantImplback to summary
pack-priv Type newVariantImpl(final boolean newCVVariant, final int cvAttributes, final ASTLocusTag astLocus)

Overrides com.jogamp.gluegen.cgram.types.IntType.newVariantImpl.

Doc from com.jogamp.gluegen.cgram.types.Type.newVariantImpl.

Create a new variant of this type matching the given parameter

Implementation must use Type's copy-ctor: Type(Type, int, ASTLocusTag)!

Parameters
newCVVariant:boolean

true if new variant is intended to have new cvAttributes

cvAttributes:int

the cvAttributes to be used

astLocus:ASTLocusTag

the ASTLocusTag to be used

Annotations
@Override
visitback to summary
public void visit(final TypeVisitor arg)

Overrides com.jogamp.gluegen.cgram.types.Type.visit.

Doc from com.jogamp.gluegen.cgram.types.Type.visit.

Traverse this Type and all of its component types; for example, the return type and argument types of a FunctionType.

Annotations
@Override