Package org.lwjgl.llvm
Class IndexerCallbacks
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IndexerCallbacks>
org.lwjgl.llvm.IndexerCallbacks
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IndexerCallbacks
extends org.lwjgl.system.Struct<IndexerCallbacks>
implements org.lwjgl.system.NativeResource
A group of callbacks used by
indexSourceFile and indexTranslationUnit.
Layout
struct IndexerCallbacks {
int (*abortQuery) (CXClientData client_data, void *reserved);
void (*diagnostic) (CXClientData client_data, CXDiagnosticSet diagnosticSet, void *reserved);
CXIdxClientFile (*enteredMainFile) (CXClientData client_data, CXFile mainFile, void *reserved);
CXIdxClientFile (*ppIncludedFile) (CXClientData client_data, CXIdxIncludedFileInfo const *info);
CXIdxClientASTFile (*importedASTFile) (CXClientData client_data, CXIdxImportedASTFileInfo const *info);
CXIdxClientContainer (*startedTranslationUnit) (CXClientData client_data, void *reserved);
void (*indexDeclaration) (CXClientData client_data, CXIdxDeclInfo const *info);
void (*indexEntityReference) (CXClientData client_data, CXIdxEntityRefInfo const *info);
}-
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 member offsets.static 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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIndexerCallbacks(ByteBuffer container) Creates aIndexerCallbacksinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalled periodically to check whether indexing should be aborted.static IndexerCallbackscalloc()Returns a newIndexerCallbacksinstance allocated withmemCalloc.static IndexerCallbacks.Buffercalloc(int capacity) Returns a newIndexerCallbacks.Bufferinstance allocated withmemCalloc.static IndexerCallbacks.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIndexerCallbacks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IndexerCallbackscalloc(org.lwjgl.system.MemoryStack stack) Returns a newIndexerCallbacksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IndexerCallbacksDeprecated.static IndexerCallbacks.BuffercallocStack(int capacity) Deprecated.static IndexerCallbacks.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static IndexerCallbackscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static IndexerCallbackscreate()Returns a newIndexerCallbacksinstance allocated withBufferUtils.static IndexerCallbacks.Buffercreate(int capacity) Returns a newIndexerCallbacks.Bufferinstance allocated withBufferUtils.static IndexerCallbackscreate(long address) Returns a newIndexerCallbacksinstance for the specified memory address.static IndexerCallbacks.Buffercreate(long address, int capacity) Create aIndexerCallbacks.Bufferinstance at the specified memory.static @Nullable IndexerCallbackscreateSafe(long address) static @Nullable IndexerCallbacks.BuffercreateSafe(long address, int capacity) called at the end of indexing; passes the complete diagnostic set.Called when a AST file (PCH or module) gets imported.called to index a reference of an entitystatic IndexerCallbacksmalloc()Returns a newIndexerCallbacksinstance allocated withmemAlloc.static IndexerCallbacks.Buffermalloc(int capacity) Returns a newIndexerCallbacks.Bufferinstance allocated withmemAlloc.static IndexerCallbacks.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIndexerCallbacks.Bufferinstance allocated on the specifiedMemoryStack.static IndexerCallbacksmalloc(org.lwjgl.system.MemoryStack stack) Returns a newIndexerCallbacksinstance allocated on the specifiedMemoryStack.static IndexerCallbacksDeprecated.static IndexerCallbacks.BuffermallocStack(int capacity) Deprecated.static IndexerCallbacks.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static IndexerCallbacksmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static IndexerAbortQuerynabortQuery(long struct) Unsafe version ofabortQuery().static IndexerDiagnosticndiagnostic(long struct) Unsafe version ofdiagnostic().static IndexerEnteredMainFilenenteredMainFile(long struct) Unsafe version ofenteredMainFile().static IndexerImportedASTFilenimportedASTFile(long struct) Unsafe version ofimportedASTFile().static IndexerIndexDeclarationnindexDeclaration(long struct) Unsafe version ofindexDeclaration().static IndexerIndexEntityReferencenindexEntityReference(long struct) Unsafe version ofindexEntityReference().static IndexerIncludedFilenppIncludedFile(long struct) Unsafe version ofppIncludedFile().nstartedTranslationUnit(long struct) Unsafe version ofstartedTranslationUnit().called when a file gets#included/#importedintsizeof()called at the beginning of indexing a translation unitMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ABORTQUERY
public static final int ABORTQUERYThe struct member offsets. -
DIAGNOSTIC
public static final int DIAGNOSTICThe struct member offsets. -
ENTEREDMAINFILE
public static final int ENTEREDMAINFILEThe struct member offsets. -
PPINCLUDEDFILE
public static final int PPINCLUDEDFILEThe struct member offsets. -
IMPORTEDASTFILE
public static final int IMPORTEDASTFILEThe struct member offsets. -
STARTEDTRANSLATIONUNIT
public static final int STARTEDTRANSLATIONUNITThe struct member offsets. -
INDEXDECLARATION
public static final int INDEXDECLARATIONThe struct member offsets. -
INDEXENTITYREFERENCE
public static final int INDEXENTITYREFERENCEThe struct member offsets.
-
-
Constructor Details
-
IndexerCallbacks
Creates aIndexerCallbacksinstance 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<IndexerCallbacks>
-
abortQuery
called periodically to check whether indexing should be aborted. Should return 0 to continue, and non-zero to abort. -
diagnostic
called at the end of indexing; passes the complete diagnostic set. -
enteredMainFile
- Returns:
- the value of the
enteredMainFilefield.
-
ppIncludedFile
called when a file gets#included/#imported -
importedASTFile
Called when a AST file (PCH or module) gets imported.AST files will not get indexed (there will not be callbacks to index all the entities in an AST file). The recommended action is that, if the AST file is not already indexed, to initiate a new indexing job specific to the AST file.
-
startedTranslationUnit
called at the beginning of indexing a translation unit -
indexDeclaration
- Returns:
- the value of the
indexDeclarationfield.
-
indexEntityReference
called to index a reference of an entity -
malloc
Returns a newIndexerCallbacksinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIndexerCallbacksinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIndexerCallbacksinstance allocated withBufferUtils. -
create
Returns a newIndexerCallbacksinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIndexerCallbacks.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIndexerCallbacks.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIndexerCallbacks.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIndexerCallbacks.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static IndexerCallbacks.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static IndexerCallbacks.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newIndexerCallbacksinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIndexerCallbacksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIndexerCallbacks.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIndexerCallbacks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nabortQuery
Unsafe version ofabortQuery(). -
ndiagnostic
Unsafe version ofdiagnostic(). -
nenteredMainFile
Unsafe version ofenteredMainFile(). -
nppIncludedFile
Unsafe version ofppIncludedFile(). -
nimportedASTFile
Unsafe version ofimportedASTFile(). -
nstartedTranslationUnit
Unsafe version ofstartedTranslationUnit(). -
nindexDeclaration
Unsafe version ofindexDeclaration(). -
nindexEntityReference
Unsafe version ofindexEntityReference().
-