Package org.lwjgl.llvm
Class CXIdxDeclInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXIdxDeclInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CXIdxDeclInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
lexicalContainer
– generally same assemanticContainer
but can be different in cases like out-of-line C++ member functionsisImplicit
– whether the declaration exists in code or was created implicitly by the compiler, e.g. implicit Objective-C methods for properties
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 Modifier and Type Class Description static class
CXIdxDeclInfo.Buffer
An array ofCXIdxDeclInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ATTRIBUTES
CURSOR
DECLASCONTAINER
ENTITYINFO
FLAGS
ISCONTAINER
ISDEFINITION
ISIMPLICIT
ISREDECLARATION
LEXICALCONTAINER
LOC
NUMATTRIBUTES
SEMANTICCONTAINERThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXIdxDeclInfo(java.nio.ByteBuffer container)
Creates aCXIdxDeclInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.lwjgl.PointerBuffer
attributes()
Returns aPointerBuffer
view of the data pointed to by theattributes
field.static CXIdxDeclInfo
calloc()
Returns a newCXIdxDeclInfo
instance allocated withmemCalloc
.static CXIdxDeclInfo.Buffer
calloc(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemCalloc
.static CXIdxDeclInfo
callocStack()
Returns a newCXIdxDeclInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXIdxDeclInfo.Buffer
callocStack(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXIdxDeclInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIdxDeclInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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)
CXCursor
cursor()
Returns aCXCursor
view of thecursor
field.CXIdxContainerInfo
declAsContainer()
Returns aCXIdxContainerInfo
view of the struct pointed to by thedeclAsContainer
field.CXIdxEntityInfo
entityInfo()
Returns aCXIdxEntityInfo
view of the struct pointed to by theentityInfo
field.int
flags()
Returns the value of theflags
field.boolean
isContainer()
Returns the value of theisContainer
field.boolean
isDefinition()
Returns the value of theisDefinition
field.boolean
isImplicit()
Returns the value of theisImplicit
field.boolean
isRedeclaration()
Returns the value of theisRedeclaration
field.CXIdxContainerInfo
lexicalContainer()
Returns aCXIdxContainerInfo
view of the struct pointed to by thelexicalContainer
field.CXIdxLoc
loc()
Returns aCXIdxLoc
view of theloc
field.static CXIdxDeclInfo
malloc()
Returns a newCXIdxDeclInfo
instance allocated withmemAlloc
.static CXIdxDeclInfo.Buffer
malloc(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemAlloc
.static CXIdxDeclInfo
mallocStack()
Returns a newCXIdxDeclInfo
instance allocated on the thread-localMemoryStack
.static CXIdxDeclInfo.Buffer
mallocStack(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the thread-localMemoryStack
.static CXIdxDeclInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
.static CXIdxDeclInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
.static org.lwjgl.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
numAttributes()
Returns the value of thenumAttributes
field.CXIdxContainerInfo
semanticContainer()
Returns aCXIdxContainerInfo
view of the struct pointed to by thesemanticContainer
field.int
sizeof()
-
-
-
Constructor Detail
-
CXIdxDeclInfo
public CXIdxDeclInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
entityInfo
public CXIdxEntityInfo entityInfo()
Returns aCXIdxEntityInfo
view of the struct pointed to by theentityInfo
field.
-
semanticContainer
public CXIdxContainerInfo semanticContainer()
Returns aCXIdxContainerInfo
view of the struct pointed to by thesemanticContainer
field.
-
lexicalContainer
public CXIdxContainerInfo lexicalContainer()
Returns aCXIdxContainerInfo
view of the struct pointed to by thelexicalContainer
field.
-
isRedeclaration
public boolean isRedeclaration()
Returns the value of theisRedeclaration
field.
-
isDefinition
public boolean isDefinition()
Returns the value of theisDefinition
field.
-
isContainer
public boolean isContainer()
Returns the value of theisContainer
field.
-
declAsContainer
public CXIdxContainerInfo declAsContainer()
Returns aCXIdxContainerInfo
view of the struct pointed to by thedeclAsContainer
field.
-
isImplicit
public boolean isImplicit()
Returns the value of theisImplicit
field.
-
attributes
public org.lwjgl.PointerBuffer attributes()
Returns aPointerBuffer
view of the data pointed to by theattributes
field.
-
numAttributes
public int numAttributes()
Returns the value of thenumAttributes
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
malloc
public static CXIdxDeclInfo malloc()
Returns a newCXIdxDeclInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CXIdxDeclInfo calloc()
Returns a newCXIdxDeclInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CXIdxDeclInfo create()
Returns a newCXIdxDeclInfo
instance allocated withBufferUtils
.
-
create
public static CXIdxDeclInfo create(long address)
Returns a newCXIdxDeclInfo
instance for the specified memory address.
-
createSafe
@Nullable public static CXIdxDeclInfo createSafe(long address)
-
malloc
public static CXIdxDeclInfo.Buffer malloc(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CXIdxDeclInfo.Buffer calloc(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CXIdxDeclInfo.Buffer create(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CXIdxDeclInfo.Buffer create(long address, int capacity)
Create aCXIdxDeclInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXIdxDeclInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CXIdxDeclInfo mallocStack()
Returns a newCXIdxDeclInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CXIdxDeclInfo callocStack()
Returns a newCXIdxDeclInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CXIdxDeclInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CXIdxDeclInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CXIdxDeclInfo.Buffer mallocStack(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CXIdxDeclInfo.Buffer callocStack(int capacity)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CXIdxDeclInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CXIdxDeclInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nentityInfo
public static CXIdxEntityInfo nentityInfo(long struct)
Unsafe version ofentityInfo()
.
-
nsemanticContainer
public static CXIdxContainerInfo nsemanticContainer(long struct)
Unsafe version ofsemanticContainer()
.
-
nlexicalContainer
public static CXIdxContainerInfo nlexicalContainer(long struct)
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
public static CXIdxContainerInfo ndeclAsContainer(long struct)
Unsafe version ofdeclAsContainer()
.
-
nisImplicit
public static int nisImplicit(long struct)
Unsafe version ofisImplicit()
.
-
nattributes
public static org.lwjgl.PointerBuffer nattributes(long struct)
Unsafe version ofattributes
.
-
nnumAttributes
public static int nnumAttributes(long struct)
Unsafe version ofnumAttributes()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
-