Package org.lwjgl.llvm
Class CXIdxEntityRefInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CXIdxEntityRefInfo>
org.lwjgl.llvm.CXIdxEntityRefInfo
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Data for
IndexerCallbacks.indexEntityReference().
Layout
struct CXIdxEntityRefInfo {
CXIdxEntityRefKind kind;
CXCursor cursor();
CXIdxLoc loc;
CXIdxEntityInfo const * referencedEntity();
CXIdxEntityInfo const * parentEntity();
CXIdxContainerInfo const * container();
CXSymbolRole role();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCXIdxEntityRefInfo(ByteBuffer container) Creates aCXIdxEntityRefInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlexical container context of the referencestatic CXIdxEntityRefInfocreate(long address) Returns a newCXIdxEntityRefInfoinstance for the specified memory address.static CXIdxEntityRefInfo.Buffercreate(long address, int capacity) Create aCXIdxEntityRefInfo.Bufferinstance at the specified memory.static @Nullable CXIdxEntityRefInfocreateSafe(long address) static @Nullable CXIdxEntityRefInfo.BuffercreateSafe(long address, int capacity) cursor()reference cursorintkind()loc()static CXIdxContainerInfoncontainer(long struct) Unsafe version ofcontainer().static CXCursorncursor(long struct) Unsafe version ofcursor().static intnkind(long struct) Unsafe version ofkind().static CXIdxLocnloc(long struct) Unsafe version ofloc().static CXIdxEntityInfonparentEntity(long struct) Unsafe version ofparentEntity().static CXIdxEntityInfonreferencedEntity(long struct) Unsafe version ofreferencedEntity().static intnrole(long struct) Unsafe version ofrole().Immediate "parent" of the reference.the entity that gets referencedintrole()sets of symbol roles of the referenceintsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
KIND
public static final int KINDThe struct member offsets. -
CURSOR
public static final int CURSORThe struct member offsets. -
LOC
public static final int LOCThe struct member offsets. -
REFERENCEDENTITY
public static final int REFERENCEDENTITYThe struct member offsets. -
PARENTENTITY
public static final int PARENTENTITYThe struct member offsets. -
CONTAINER
public static final int CONTAINERThe struct member offsets. -
ROLE
public static final int ROLEThe struct member offsets.
-
-
Constructor Details
-
CXIdxEntityRefInfo
Creates aCXIdxEntityRefInfoinstance at the current position of the specifiedByteBuffercontainer. 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CXIdxEntityRefInfo>
-
kind
public int kind()- Returns:
- the value of the
kindfield.
-
cursor
reference cursor -
loc
- Returns:
- a
CXIdxLocview of thelocfield.
-
referencedEntity
the entity that gets referenced -
parentEntity
Immediate "parent" of the reference. For example:Foo *var;The parent of reference of type
Foois the variablevar. For references inside statement bodies of functions/methods, theparentEntitywill be the function/method. -
container
lexical container context of the reference -
role
public int role()sets of symbol roles of the reference -
create
Returns a newCXIdxEntityRefInfoinstance for the specified memory address. -
createSafe
-
create
Create aCXIdxEntityRefInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nkind
public static int nkind(long struct) Unsafe version ofkind(). -
ncursor
Unsafe version ofcursor(). -
nloc
Unsafe version ofloc(). -
nreferencedEntity
Unsafe version ofreferencedEntity(). -
nparentEntity
Unsafe version ofparentEntity(). -
ncontainer
Unsafe version ofcontainer(). -
nrole
public static int nrole(long struct) Unsafe version ofrole().
-