public class IndexerCallbacks
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
indexSourceFile and indexTranslationUnit.
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.ppIncludedFile – called when a file gets #included/#importedimportedASTFile –
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 unitindexEntityReference – called to index a reference of an entity
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);
}| Modifier and Type | Class and Description |
|---|---|
static class |
IndexerCallbacks.Buffer
An array of
IndexerCallbacks structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ABORTQUERY
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DIAGNOSTIC
The struct member offsets.
|
static int |
ENTEREDMAINFILE
The struct member offsets.
|
static int |
IMPORTEDASTFILE
The struct member offsets.
|
static int |
INDEXDECLARATION
The struct member offsets.
|
static int |
INDEXENTITYREFERENCE
The struct member offsets.
|
static int |
PPINCLUDEDFILE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STARTEDTRANSLATIONUNIT
The struct member offsets.
|
| Constructor and Description |
|---|
IndexerCallbacks(java.nio.ByteBuffer container)
Creates a
IndexerCallbacks instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
IndexerAbortQuery |
abortQuery()
Returns the value of the
abortQuery field. |
static IndexerCallbacks |
calloc()
Returns a new
IndexerCallbacks instance allocated with memCalloc. |
static IndexerCallbacks.Buffer |
calloc(int capacity)
Returns a new
IndexerCallbacks.Buffer instance allocated with memCalloc. |
static IndexerCallbacks |
callocStack()
Returns a new
IndexerCallbacks instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static IndexerCallbacks.Buffer |
callocStack(int capacity)
Returns a new
IndexerCallbacks.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static IndexerCallbacks.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
IndexerCallbacks.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static IndexerCallbacks |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
IndexerCallbacks instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static IndexerCallbacks |
create()
Returns a new
IndexerCallbacks instance allocated with BufferUtils. |
static IndexerCallbacks.Buffer |
create(int capacity)
Returns a new
IndexerCallbacks.Buffer instance allocated with BufferUtils. |
static IndexerCallbacks |
create(long address)
Returns a new
IndexerCallbacks instance for the specified memory address. |
static IndexerCallbacks.Buffer |
create(long address,
int capacity)
Create a
IndexerCallbacks.Buffer instance at the specified memory. |
static IndexerCallbacks |
createSafe(long address)
|
static IndexerCallbacks.Buffer |
createSafe(long address,
int capacity)
|
IndexerDiagnostic |
diagnostic()
Returns the value of the
diagnostic field. |
IndexerEnteredMainFile |
enteredMainFile()
Returns the value of the
enteredMainFile field. |
IndexerImportedASTFile |
importedASTFile()
Returns the value of the
importedASTFile field. |
IndexerIndexDeclaration |
indexDeclaration()
Returns the value of the
indexDeclaration field. |
IndexerIndexEntityReference |
indexEntityReference()
Returns the value of the
indexEntityReference field. |
static IndexerCallbacks |
malloc()
Returns a new
IndexerCallbacks instance allocated with memAlloc. |
static IndexerCallbacks.Buffer |
malloc(int capacity)
Returns a new
IndexerCallbacks.Buffer instance allocated with memAlloc. |
static IndexerCallbacks |
mallocStack()
Returns a new
IndexerCallbacks instance allocated on the thread-local MemoryStack. |
static IndexerCallbacks.Buffer |
mallocStack(int capacity)
Returns a new
IndexerCallbacks.Buffer instance allocated on the thread-local MemoryStack. |
static IndexerCallbacks.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
IndexerCallbacks.Buffer instance allocated on the specified MemoryStack. |
static IndexerCallbacks |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
IndexerCallbacks instance allocated on the specified MemoryStack. |
static IndexerAbortQuery |
nabortQuery(long struct)
Unsafe version of
abortQuery(). |
static IndexerDiagnostic |
ndiagnostic(long struct)
Unsafe version of
diagnostic(). |
static IndexerEnteredMainFile |
nenteredMainFile(long struct)
Unsafe version of
enteredMainFile(). |
static IndexerImportedASTFile |
nimportedASTFile(long struct)
Unsafe version of
importedASTFile(). |
static IndexerIndexDeclaration |
nindexDeclaration(long struct)
Unsafe version of
indexDeclaration(). |
static IndexerIndexEntityReference |
nindexEntityReference(long struct)
Unsafe version of
indexEntityReference(). |
static IndexerIncludedFile |
nppIncludedFile(long struct)
Unsafe version of
ppIncludedFile(). |
static IndexerStartedTranslationUnit |
nstartedTranslationUnit(long struct)
Unsafe version of
startedTranslationUnit(). |
IndexerIncludedFile |
ppIncludedFile()
Returns the value of the
ppIncludedFile field. |
int |
sizeof() |
IndexerStartedTranslationUnit |
startedTranslationUnit()
Returns the value of the
startedTranslationUnit field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ABORTQUERY
public static final int DIAGNOSTIC
public static final int ENTEREDMAINFILE
public static final int PPINCLUDEDFILE
public static final int IMPORTEDASTFILE
public static final int STARTEDTRANSLATIONUNIT
public static final int INDEXDECLARATION
public static final int INDEXENTITYREFERENCE
public IndexerCallbacks(java.nio.ByteBuffer container)
IndexerCallbacks 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 IndexerAbortQuery abortQuery()
abortQuery field.public IndexerDiagnostic diagnostic()
diagnostic field.public IndexerEnteredMainFile enteredMainFile()
enteredMainFile field.public IndexerIncludedFile ppIncludedFile()
ppIncludedFile field.public IndexerImportedASTFile importedASTFile()
importedASTFile field.public IndexerStartedTranslationUnit startedTranslationUnit()
startedTranslationUnit field.public IndexerIndexDeclaration indexDeclaration()
indexDeclaration field.public IndexerIndexEntityReference indexEntityReference()
indexEntityReference field.public static IndexerCallbacks malloc()
IndexerCallbacks instance allocated with memAlloc. The instance must be explicitly freed.public static IndexerCallbacks calloc()
IndexerCallbacks instance allocated with memCalloc. The instance must be explicitly freed.public static IndexerCallbacks create()
IndexerCallbacks instance allocated with BufferUtils.public static IndexerCallbacks create(long address)
IndexerCallbacks instance for the specified memory address.@Nullable public static IndexerCallbacks createSafe(long address)
public static IndexerCallbacks.Buffer malloc(int capacity)
IndexerCallbacks.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static IndexerCallbacks.Buffer calloc(int capacity)
IndexerCallbacks.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static IndexerCallbacks.Buffer create(int capacity)
IndexerCallbacks.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static IndexerCallbacks.Buffer create(long address, int capacity)
IndexerCallbacks.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static IndexerCallbacks.Buffer createSafe(long address, int capacity)
public static IndexerCallbacks mallocStack()
IndexerCallbacks instance allocated on the thread-local MemoryStack.public static IndexerCallbacks callocStack()
IndexerCallbacks instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static IndexerCallbacks mallocStack(org.lwjgl.system.MemoryStack stack)
IndexerCallbacks instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static IndexerCallbacks callocStack(org.lwjgl.system.MemoryStack stack)
IndexerCallbacks instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static IndexerCallbacks.Buffer mallocStack(int capacity)
IndexerCallbacks.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static IndexerCallbacks.Buffer callocStack(int capacity)
IndexerCallbacks.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static IndexerCallbacks.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
IndexerCallbacks.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static IndexerCallbacks.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
IndexerCallbacks.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static IndexerAbortQuery nabortQuery(long struct)
abortQuery().public static IndexerDiagnostic ndiagnostic(long struct)
diagnostic().public static IndexerEnteredMainFile nenteredMainFile(long struct)
enteredMainFile().public static IndexerIncludedFile nppIncludedFile(long struct)
ppIncludedFile().public static IndexerImportedASTFile nimportedASTFile(long struct)
importedASTFile().public static IndexerStartedTranslationUnit nstartedTranslationUnit(long struct)
startedTranslationUnit().public static IndexerIndexDeclaration nindexDeclaration(long struct)
indexDeclaration().public static IndexerIndexEntityReference nindexEntityReference(long struct)
indexEntityReference().Copyright LWJGL. All Rights Reserved. License terms.