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.StructData forIndexerCallbacks.indexEntityReference().Layout
struct CXIdxEntityRefInfo { CXIdxEntityRefKind kind;CXCursorcursor();CXIdxLocloc;CXIdxEntityInfoconst *referencedEntity();CXIdxEntityInfoconst *parentEntity();CXIdxContainerInfoconst *container(); CXSymbolRolerole(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXIdxEntityRefInfo.BufferAn array ofCXIdxEntityRefInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCONTAINER
CURSOR
KIND
LOC
PARENTENTITY
REFERENCEDENTITY
ROLEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXIdxEntityRefInfo(java.nio.ByteBuffer container)Creates aCXIdxEntityRefInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CXIdxContainerInfocontainer()lexical 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 CXIdxEntityRefInfocreateSafe(long address)static CXIdxEntityRefInfo.BuffercreateSafe(long address, int capacity)CXCursorcursor()reference cursorintkind()CXIdxLocloc()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().CXIdxEntityInfoparentEntity()Immediate "parent" of the reference.CXIdxEntityInforeferencedEntity()the entity that gets referencedintrole()sets of symbol roles of the referenceintsizeof()
-
-
-
Constructor Detail
-
CXIdxEntityRefInfo
public CXIdxEntityRefInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
kind
public int kind()
- Returns:
- the value of the
kindfield.
-
cursor
public CXCursor cursor()
reference cursor
-
referencedEntity
public CXIdxEntityInfo referencedEntity()
the entity that gets referenced
-
parentEntity
public CXIdxEntityInfo 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
public CXIdxContainerInfo container()
lexical container context of the reference
-
role
public int role()
sets of symbol roles of the reference
-
create
public static CXIdxEntityRefInfo create(long address)
Returns a newCXIdxEntityRefInfoinstance 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.Bufferinstance 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().
-
-