Package org.lwjgl.llvm
Class CXIdxEntityRefInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXIdxEntityRefInfo
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class CXIdxEntityRefInfo extends org.lwjgl.system.Struct
Data forIndexerCallbacks.indexEntityReference()
.Member documentation
cursor
– reference cursorreferencedEntity
– the entity that gets referencedparentEntity
– Immediate "parent" of the reference. For example:Foo *var;
The parent of reference of type
Foo
is the variablevar
. For references inside statement bodies of functions/methods, theparentEntity
will be the function/method.container
– lexical container context of the referencerole
– sets of symbol roles of the reference
Layout
struct CXIdxEntityRefInfo { CXIdxEntityRefKind kind;
CXCursor
cursor;CXIdxLoc
loc;CXIdxEntityInfo
const * referencedEntity;CXIdxEntityInfo
const * parentEntity;CXIdxContainerInfo
const * container; CXSymbolRole role; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXIdxEntityRefInfo.Buffer
An array ofCXIdxEntityRefInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CONTAINER
CURSOR
KIND
LOC
PARENTENTITY
REFERENCEDENTITY
ROLEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXIdxEntityRefInfo(java.nio.ByteBuffer container)
Creates aCXIdxEntityRefInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CXIdxContainerInfo
container()
Returns aCXIdxContainerInfo
view of the struct pointed to by thecontainer
field.static CXIdxEntityRefInfo
create(long address)
Returns a newCXIdxEntityRefInfo
instance for the specified memory address.static CXIdxEntityRefInfo.Buffer
create(long address, int capacity)
Create aCXIdxEntityRefInfo.Buffer
instance at the specified memory.static CXIdxEntityRefInfo
createSafe(long address)
static CXIdxEntityRefInfo.Buffer
createSafe(long address, int capacity)
CXCursor
cursor()
Returns aCXCursor
view of thecursor
field.int
kind()
Returns the value of thekind
field.CXIdxLoc
loc()
Returns aCXIdxLoc
view of theloc
field.static CXIdxContainerInfo
ncontainer(long struct)
Unsafe version ofcontainer()
.static CXCursor
ncursor(long struct)
Unsafe version ofcursor()
.static int
nkind(long struct)
Unsafe version ofkind()
.static CXIdxLoc
nloc(long struct)
Unsafe version ofloc()
.static CXIdxEntityInfo
nparentEntity(long struct)
Unsafe version ofparentEntity()
.static CXIdxEntityInfo
nreferencedEntity(long struct)
Unsafe version ofreferencedEntity()
.static int
nrole(long struct)
Unsafe version ofrole()
.CXIdxEntityInfo
parentEntity()
Returns aCXIdxEntityInfo
view of the struct pointed to by theparentEntity
field.CXIdxEntityInfo
referencedEntity()
Returns aCXIdxEntityInfo
view of the struct pointed to by thereferencedEntity
field.int
role()
Returns the value of therole
field.int
sizeof()
-
-
-
Constructor Detail
-
CXIdxEntityRefInfo
public CXIdxEntityRefInfo(java.nio.ByteBuffer container)
Creates aCXIdxEntityRefInfo
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
-
kind
public int kind()
Returns the value of thekind
field.
-
referencedEntity
public CXIdxEntityInfo referencedEntity()
Returns aCXIdxEntityInfo
view of the struct pointed to by thereferencedEntity
field.
-
parentEntity
public CXIdxEntityInfo parentEntity()
Returns aCXIdxEntityInfo
view of the struct pointed to by theparentEntity
field.
-
container
public CXIdxContainerInfo container()
Returns aCXIdxContainerInfo
view of the struct pointed to by thecontainer
field.
-
role
public int role()
Returns the value of therole
field.
-
create
public static CXIdxEntityRefInfo create(long address)
Returns a newCXIdxEntityRefInfo
instance for the specified memory address.
-
createSafe
@Nullable public static CXIdxEntityRefInfo createSafe(long address)
-
create
public static CXIdxEntityRefInfo.Buffer create(long address, int capacity)
Create aCXIdxEntityRefInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXIdxEntityRefInfo.Buffer createSafe(long address, int capacity)
-
nkind
public static int nkind(long struct)
Unsafe version ofkind()
.
-
nreferencedEntity
public static CXIdxEntityInfo nreferencedEntity(long struct)
Unsafe version ofreferencedEntity()
.
-
nparentEntity
public static CXIdxEntityInfo nparentEntity(long struct)
Unsafe version ofparentEntity()
.
-
ncontainer
public static CXIdxContainerInfo ncontainer(long struct)
Unsafe version ofcontainer()
.
-
nrole
public static int nrole(long struct)
Unsafe version ofrole()
.
-
-