Package org.lwjgl.llvm
Class IndexerCallbacks
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 TypeMethodDescriptionstatic IndexerCallbackscalloc()Returns a newIndexerCallbacksinstance allocated withmemCalloc.static IndexerCallbacks.Buffercalloc(int capacity) Returns a newIndexerCallbacks.Bufferinstance allocated withmemCalloc.static IndexerCallbacks.Buffercalloc(int capacity, MemoryStack stack) Returns a newIndexerCallbacks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IndexerCallbackscalloc(MemoryStack stack) Returns a newIndexerCallbacksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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) static IndexerCallbacksmalloc()Returns a newIndexerCallbacksinstance allocated withmemAlloc.static IndexerCallbacks.Buffermalloc(int capacity) Returns a newIndexerCallbacks.Bufferinstance allocated withmemAlloc.static IndexerCallbacks.Buffermalloc(int capacity, MemoryStack stack) Returns a newIndexerCallbacks.Bufferinstance allocated on the specifiedMemoryStack.static IndexerCallbacksmalloc(MemoryStack stack) Returns a newIndexerCallbacksinstance allocated on the specifiedMemoryStack.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().intsizeof()Returnssizeof(struct).Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<IndexerCallbacks>
-
abortQuery
- Returns:
- the value of the
abortQueryfield.
-
diagnostic
- Returns:
- the value of the
diagnosticfield.
-
enteredMainFile
- Returns:
- the value of the
enteredMainFilefield.
-
ppIncludedFile
- Returns:
- the value of the
ppIncludedFilefield.
-
importedASTFile
- Returns:
- the value of the
importedASTFilefield.
-
startedTranslationUnit
- Returns:
- the value of the
startedTranslationUnitfield.
-
indexDeclaration
- Returns:
- the value of the
indexDeclarationfield.
-
indexEntityReference
- Returns:
- the value of the
indexEntityReferencefield.
-
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
-
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().
-