Package org.lwjgl.llvm
Class CXIdxDeclInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct CXIdxDeclInfo {
CXIdxEntityInfo
const * entityInfo;
CXCursor
cursor;
CXIdxLoc
loc;
CXIdxContainerInfo
const * semanticContainer;
CXIdxContainerInfo
const * lexicalContainer()
;
int isRedeclaration;
int isDefinition;
int isContainer;
CXIdxContainerInfo
const * declAsContainer;
int isImplicit()
;
CXIdxAttrInfo
const * const * attributes;
unsigned numAttributes;
unsigned flags;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCXIdxDeclInfo
(ByteBuffer container) Creates aCXIdxDeclInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXIdxDeclInfo
calloc()
Returns a newCXIdxDeclInfo
instance allocated withmemCalloc
.static CXIdxDeclInfo.Buffer
calloc
(int capacity) Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemCalloc
.static CXIdxDeclInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIdxDeclInfo
calloc
(MemoryStack stack) Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIdxDeclInfo
Deprecated.static CXIdxDeclInfo.Buffer
callocStack
(int capacity) Deprecated.static CXIdxDeclInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static CXIdxDeclInfo
callocStack
(MemoryStack stack) Deprecated.static CXIdxDeclInfo
create()
Returns a newCXIdxDeclInfo
instance allocated withBufferUtils
.static CXIdxDeclInfo.Buffer
create
(int capacity) Returns a newCXIdxDeclInfo.Buffer
instance allocated withBufferUtils
.static CXIdxDeclInfo
create
(long address) Returns a newCXIdxDeclInfo
instance for the specified memory address.static CXIdxDeclInfo.Buffer
create
(long address, int capacity) Create aCXIdxDeclInfo.Buffer
instance at the specified memory.static CXIdxDeclInfo
createSafe
(long address) static CXIdxDeclInfo.Buffer
createSafe
(long address, int capacity) cursor()
int
flags()
boolean
boolean
boolean
whether the declaration exists in code or was created implicitly by the compiler, e.g.boolean
generally same assemanticContainer
but can be different in cases like out-of-line C++ member functionsloc()
static CXIdxDeclInfo
malloc()
Returns a newCXIdxDeclInfo
instance allocated withmemAlloc
.static CXIdxDeclInfo.Buffer
malloc
(int capacity) Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemAlloc
.static CXIdxDeclInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
.static CXIdxDeclInfo
malloc
(MemoryStack stack) Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
.static CXIdxDeclInfo
Deprecated.static CXIdxDeclInfo.Buffer
mallocStack
(int capacity) Deprecated.static CXIdxDeclInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static CXIdxDeclInfo
mallocStack
(MemoryStack stack) Deprecated.static PointerBuffer
nattributes
(long struct) Unsafe version ofattributes
.static CXCursor
ncursor
(long struct) Unsafe version ofcursor()
.static CXIdxContainerInfo
ndeclAsContainer
(long struct) Unsafe version ofdeclAsContainer()
.static CXIdxEntityInfo
nentityInfo
(long struct) Unsafe version ofentityInfo()
.static int
nflags
(long struct) Unsafe version offlags()
.static int
nisContainer
(long struct) Unsafe version ofisContainer()
.static int
nisDefinition
(long struct) Unsafe version ofisDefinition()
.static int
nisImplicit
(long struct) Unsafe version ofisImplicit()
.static int
nisRedeclaration
(long struct) Unsafe version ofisRedeclaration()
.static CXIdxContainerInfo
nlexicalContainer
(long struct) Unsafe version oflexicalContainer()
.static CXIdxLoc
nloc
(long struct) Unsafe version ofloc()
.static int
nnumAttributes
(long struct) Unsafe version ofnumAttributes()
.static CXIdxContainerInfo
nsemanticContainer
(long struct) Unsafe version ofsemanticContainer()
.int
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ENTITYINFO
public static final int ENTITYINFOThe struct member offsets. -
CURSOR
public static final int CURSORThe struct member offsets. -
LOC
public static final int LOCThe struct member offsets. -
SEMANTICCONTAINER
public static final int SEMANTICCONTAINERThe struct member offsets. -
LEXICALCONTAINER
public static final int LEXICALCONTAINERThe struct member offsets. -
ISREDECLARATION
public static final int ISREDECLARATIONThe struct member offsets. -
ISDEFINITION
public static final int ISDEFINITIONThe struct member offsets. -
ISCONTAINER
public static final int ISCONTAINERThe struct member offsets. -
DECLASCONTAINER
public static final int DECLASCONTAINERThe struct member offsets. -
ISIMPLICIT
public static final int ISIMPLICITThe struct member offsets. -
ATTRIBUTES
public static final int ATTRIBUTESThe struct member offsets. -
NUMATTRIBUTES
public static final int NUMATTRIBUTESThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
CXIdxDeclInfo
Creates aCXIdxDeclInfo
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CXIdxDeclInfo>
-
entityInfo
- Returns:
- a
CXIdxEntityInfo
view of the struct pointed to by theentityInfo
field.
-
cursor
- Returns:
- a
CXCursor
view of thecursor
field.
-
loc
- Returns:
- a
CXIdxLoc
view of theloc
field.
-
semanticContainer
- Returns:
- a
CXIdxContainerInfo
view of the struct pointed to by thesemanticContainer
field.
-
lexicalContainer
generally same assemanticContainer
but can be different in cases like out-of-line C++ member functions -
isRedeclaration
public boolean isRedeclaration()- Returns:
- the value of the
isRedeclaration
field.
-
isDefinition
public boolean isDefinition()- Returns:
- the value of the
isDefinition
field.
-
isContainer
public boolean isContainer()- Returns:
- the value of the
isContainer
field.
-
declAsContainer
- Returns:
- a
CXIdxContainerInfo
view of the struct pointed to by thedeclAsContainer
field.
-
isImplicit
public boolean isImplicit()whether the declaration exists in code or was created implicitly by the compiler, e.g. implicit Objective-C methods for properties -
attributes
- Returns:
- a
PointerBuffer
view of the data pointed to by theattributes
field.
-
numAttributes
public int numAttributes()- Returns:
- the value of the
numAttributes
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
malloc
Returns a newCXIdxDeclInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCXIdxDeclInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCXIdxDeclInfo
instance allocated withBufferUtils
. -
create
Returns a newCXIdxDeclInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCXIdxDeclInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCXIdxDeclInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nentityInfo
Unsafe version ofentityInfo()
. -
ncursor
Unsafe version ofcursor()
. -
nloc
Unsafe version ofloc()
. -
nsemanticContainer
Unsafe version ofsemanticContainer()
. -
nlexicalContainer
Unsafe version oflexicalContainer()
. -
nisRedeclaration
public static int nisRedeclaration(long struct) Unsafe version ofisRedeclaration()
. -
nisDefinition
public static int nisDefinition(long struct) Unsafe version ofisDefinition()
. -
nisContainer
public static int nisContainer(long struct) Unsafe version ofisContainer()
. -
ndeclAsContainer
Unsafe version ofdeclAsContainer()
. -
nisImplicit
public static int nisImplicit(long struct) Unsafe version ofisImplicit()
. -
nattributes
Unsafe version ofattributes
. -
nnumAttributes
public static int nnumAttributes(long struct) Unsafe version ofnumAttributes()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
.
-