public class CXIdxEntityRefInfo
extends org.lwjgl.system.Struct
IndexerCallbacks.indexEntityReference().
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 variable var. For references inside statement bodies of functions/methods, the
parentEntity will be the function/method.
container – lexical container context of the referencerole – sets of symbol roles of the reference
struct CXIdxEntityRefInfo {
CXIdxEntityRefKind kind;
CXCursor cursor;
CXIdxLoc loc;
CXIdxEntityInfo const * referencedEntity;
CXIdxEntityInfo const * parentEntity;
CXIdxContainerInfo const * container;
CXSymbolRole role;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXIdxEntityRefInfo.Buffer
An array of
CXIdxEntityRefInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CONTAINER
The struct member offsets.
|
static int |
CURSOR
The struct member offsets.
|
static int |
KIND
The struct member offsets.
|
static int |
LOC
The struct member offsets.
|
static int |
PARENTENTITY
The struct member offsets.
|
static int |
REFERENCEDENTITY
The struct member offsets.
|
static int |
ROLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXIdxEntityRefInfo(java.nio.ByteBuffer container)
Creates a
CXIdxEntityRefInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
CXIdxContainerInfo |
container()
Returns a
CXIdxContainerInfo view of the struct pointed to by the container field. |
static CXIdxEntityRefInfo |
create(long address)
Returns a new
CXIdxEntityRefInfo instance for the specified memory address. |
static CXIdxEntityRefInfo.Buffer |
create(long address,
int capacity)
Create a
CXIdxEntityRefInfo.Buffer instance at the specified memory. |
static CXIdxEntityRefInfo |
createSafe(long address)
|
static CXIdxEntityRefInfo.Buffer |
createSafe(long address,
int capacity)
|
CXCursor |
cursor()
Returns a
CXCursor view of the cursor field. |
int |
kind()
Returns the value of the
kind field. |
CXIdxLoc |
loc()
Returns a
CXIdxLoc view of the loc field. |
static CXIdxContainerInfo |
ncontainer(long struct)
Unsafe version of
container(). |
static CXCursor |
ncursor(long struct)
Unsafe version of
cursor(). |
static int |
nkind(long struct)
Unsafe version of
kind(). |
static CXIdxLoc |
nloc(long struct)
Unsafe version of
loc(). |
static CXIdxEntityInfo |
nparentEntity(long struct)
Unsafe version of
parentEntity(). |
static CXIdxEntityInfo |
nreferencedEntity(long struct)
Unsafe version of
referencedEntity(). |
static int |
nrole(long struct)
Unsafe version of
role(). |
CXIdxEntityInfo |
parentEntity()
Returns a
CXIdxEntityInfo view of the struct pointed to by the parentEntity field. |
CXIdxEntityInfo |
referencedEntity()
Returns a
CXIdxEntityInfo view of the struct pointed to by the referencedEntity field. |
int |
role()
Returns the value of the
role field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int KIND
public static final int CURSOR
public static final int LOC
public static final int REFERENCEDENTITY
public static final int PARENTENTITY
public static final int CONTAINER
public static final int ROLE
public CXIdxEntityRefInfo(java.nio.ByteBuffer container)
CXIdxEntityRefInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int kind()
kind field.public CXIdxEntityInfo referencedEntity()
CXIdxEntityInfo view of the struct pointed to by the referencedEntity field.public CXIdxEntityInfo parentEntity()
CXIdxEntityInfo view of the struct pointed to by the parentEntity field.public CXIdxContainerInfo container()
CXIdxContainerInfo view of the struct pointed to by the container field.public int role()
role field.public static CXIdxEntityRefInfo create(long address)
CXIdxEntityRefInfo instance for the specified memory address.@Nullable public static CXIdxEntityRefInfo createSafe(long address)
public static CXIdxEntityRefInfo.Buffer create(long address, int capacity)
CXIdxEntityRefInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXIdxEntityRefInfo.Buffer createSafe(long address, int capacity)
public static int nkind(long struct)
kind().public static CXIdxEntityInfo nreferencedEntity(long struct)
referencedEntity().public static CXIdxEntityInfo nparentEntity(long struct)
parentEntity().public static CXIdxContainerInfo ncontainer(long struct)
container().public static int nrole(long struct)
role().Copyright LWJGL. All Rights Reserved. License terms.