Package org.lwjgl.llvm
Class CXIdxImportedASTFileInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXIdxImportedASTFileInfo
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class CXIdxImportedASTFileInfo extends org.lwjgl.system.Struct
Data for IndexerCallbacks#importedASTFile.Member documentation
file
– top level AST file containing the imported PCH, module or submodulemodule
– the imported module orNULL
if the AST file is a PCHloc
– location where the file is imported. Applicable only for modulesisImplicit
– non-zero if an inclusion directive was automatically turned into a module import. Applicable only for modules
Layout
struct CXIdxImportedASTFileInfo { CXFile file; CXModule module;
CXIdxLoc
loc; int isImplicit; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXIdxImportedASTFileInfo.Buffer
An array ofCXIdxImportedASTFileInfo
structs.
-
Constructor Summary
Constructors Constructor Description CXIdxImportedASTFileInfo(java.nio.ByteBuffer container)
Creates aCXIdxImportedASTFileInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CXIdxImportedASTFileInfo
create(long address)
Returns a newCXIdxImportedASTFileInfo
instance for the specified memory address.static CXIdxImportedASTFileInfo.Buffer
create(long address, int capacity)
Create aCXIdxImportedASTFileInfo.Buffer
instance at the specified memory.static CXIdxImportedASTFileInfo
createSafe(long address)
static CXIdxImportedASTFileInfo.Buffer
createSafe(long address, int capacity)
long
file()
Returns the value of thefile
field.boolean
isImplicit()
Returns the value of theisImplicit
field.CXIdxLoc
loc()
Returns aCXIdxLoc
view of theloc
field.long
module()
Returns the value of themodule
field.static long
nfile(long struct)
Unsafe version offile()
.static int
nisImplicit(long struct)
Unsafe version ofisImplicit()
.static CXIdxLoc
nloc(long struct)
Unsafe version ofloc()
.static long
nmodule(long struct)
Unsafe version ofmodule()
.int
sizeof()
-
-
-
Constructor Detail
-
CXIdxImportedASTFileInfo
public CXIdxImportedASTFileInfo(java.nio.ByteBuffer container)
Creates aCXIdxImportedASTFileInfo
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
-
file
public long file()
Returns the value of thefile
field.
-
module
public long module()
Returns the value of themodule
field.
-
isImplicit
public boolean isImplicit()
Returns the value of theisImplicit
field.
-
create
public static CXIdxImportedASTFileInfo create(long address)
Returns a newCXIdxImportedASTFileInfo
instance for the specified memory address.
-
createSafe
@Nullable public static CXIdxImportedASTFileInfo createSafe(long address)
-
create
public static CXIdxImportedASTFileInfo.Buffer create(long address, int capacity)
Create aCXIdxImportedASTFileInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXIdxImportedASTFileInfo.Buffer createSafe(long address, int capacity)
-
nfile
public static long nfile(long struct)
Unsafe version offile()
.
-
nmodule
public static long nmodule(long struct)
Unsafe version ofmodule()
.
-
nisImplicit
public static int nisImplicit(long struct)
Unsafe version ofisImplicit()
.
-
-