Class CXIndexOptions
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
0 is the default value of each member of this struct except for Size.
Layout
struct CXIndexOptions {
unsigned Size();
unsigned char ThreadBackgroundPriorityForIndexing();
unsigned char ThreadBackgroundPriorityForEditing();
unsigned ExcludeDeclarationsFromPCH() : 1;
unsigned DisplayDiagnostics() : 1;
unsigned StorePreamblesInMemory() : 1;
unsigned Reserved : 13;
char const * PreambleStoragePath();
char const * InvocationEmissionPath();
}-
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 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 size in bytes.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionCXIndexOptions(ByteBuffer container) Creates aCXIndexOptionsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXIndexOptionscalloc()Returns a newCXIndexOptionsinstance allocated withmemCalloc.static CXIndexOptions.Buffercalloc(int capacity) Returns a newCXIndexOptions.Bufferinstance allocated withmemCalloc.static CXIndexOptions.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIndexOptionscalloc(org.lwjgl.system.MemoryStack stack) Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIndexOptionscreate()Returns a newCXIndexOptionsinstance allocated withBufferUtils.static CXIndexOptions.Buffercreate(int capacity) Returns a newCXIndexOptions.Bufferinstance allocated withBufferUtils.static CXIndexOptionscreate(long address) Returns a newCXIndexOptionsinstance for the specified memory address.static CXIndexOptions.Buffercreate(long address, int capacity) Create aCXIndexOptions.Bufferinstance at the specified memory.static @Nullable CXIndexOptionscreateSafe(long address) static @Nullable CXIndexOptions.BuffercreateSafe(long address, int capacity) booleanseecreateIndexDisplayDiagnostics(boolean value) Sets the specified value to theDisplayDiagnostics()field.booleanseecreateIndexExcludeDeclarationsFromPCH(boolean value) Sets the specified value to theExcludeDeclarationsFromPCH()field.@Nullable ByteBufferspecifies a path which will contain log files for certain libclang invocations.InvocationEmissionPath(@Nullable ByteBuffer value) Sets the address of the specified encoded string to theInvocationEmissionPath()field.@Nullable Stringspecifies a path which will contain log files for certain libclang invocations.static CXIndexOptionsmalloc()Returns a newCXIndexOptionsinstance allocated withmemAlloc.static CXIndexOptions.Buffermalloc(int capacity) Returns a newCXIndexOptions.Bufferinstance allocated withmemAlloc.static CXIndexOptions.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStack.static CXIndexOptionsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStack.static intnbitfield0(long struct) static voidnbitfield0(long struct, int value) static intnDisplayDiagnostics(long struct) Unsafe version ofDisplayDiagnostics().static voidnDisplayDiagnostics(long struct, int value) Unsafe version ofDisplayDiagnostics.static intnExcludeDeclarationsFromPCH(long struct) Unsafe version ofExcludeDeclarationsFromPCH().static voidnExcludeDeclarationsFromPCH(long struct, int value) Unsafe version ofExcludeDeclarationsFromPCH.static @Nullable ByteBuffernInvocationEmissionPath(long struct) Unsafe version ofInvocationEmissionPath().static voidnInvocationEmissionPath(long struct, @Nullable ByteBuffer value) Unsafe version ofInvocationEmissionPath.static @Nullable StringnInvocationEmissionPathString(long struct) Unsafe version ofInvocationEmissionPathString().static @Nullable ByteBuffernPreambleStoragePath(long struct) Unsafe version ofPreambleStoragePath().static voidnPreambleStoragePath(long struct, @Nullable ByteBuffer value) Unsafe version ofPreambleStoragePath.static @Nullable StringnPreambleStoragePathString(long struct) Unsafe version ofPreambleStoragePathString().static intnReserved(long struct) static voidnReserved(long struct, int value) static intnSize(long struct) Unsafe version ofSize().static voidnSize(long struct, int value) Unsafe version ofSize.static intnStorePreamblesInMemory(long struct) Unsafe version ofStorePreamblesInMemory().static voidnStorePreamblesInMemory(long struct, int value) Unsafe version ofStorePreamblesInMemory.static bytenThreadBackgroundPriorityForEditing(long struct) Unsafe version ofThreadBackgroundPriorityForEditing().static voidnThreadBackgroundPriorityForEditing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForEditing.static bytenThreadBackgroundPriorityForIndexing(long struct) Unsafe version ofThreadBackgroundPriorityForIndexing().static voidnThreadBackgroundPriorityForIndexing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForIndexing.@Nullable ByteBufferthe path to a directory, in which to store temporary PCH files.PreambleStoragePath(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thePreambleStoragePath()field.@Nullable Stringthe path to a directory, in which to store temporary PCH files.set(int Size, byte ThreadBackgroundPriorityForIndexing, byte ThreadBackgroundPriorityForEditing, boolean ExcludeDeclarationsFromPCH, boolean DisplayDiagnostics, boolean StorePreamblesInMemory, @Nullable ByteBuffer PreambleStoragePath, @Nullable ByteBuffer InvocationEmissionPath) Initializes this struct with the specified values.set(CXIndexOptions src) Copies the specified struct data to this struct.intSize()The size of structCXIndexOptionsused for option versioning.Size(int value) Sets the specified value to theSize()field.Sets the default value to theSize()field.intsizeof()booleanseecreateIndexStorePreamblesInMemory(boolean value) Sets the specified value to theStorePreamblesInMemory()field.byteaCXChoiceenumerator that specifies the editing priority policy.ThreadBackgroundPriorityForEditing(byte value) Sets the specified value to theThreadBackgroundPriorityForEditing()field.byteaCXChoiceenumerator that specifies the indexing priority policy.ThreadBackgroundPriorityForIndexing(byte value) Sets the specified value to theThreadBackgroundPriorityForIndexing()field.Methods 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. -
SIZE
public static final int SIZEThe struct member offsets. -
THREADBACKGROUNDPRIORITYFORINDEXING
public static final int THREADBACKGROUNDPRIORITYFORINDEXINGThe struct member offsets. -
THREADBACKGROUNDPRIORITYFOREDITING
public static final int THREADBACKGROUNDPRIORITYFOREDITINGThe struct member offsets. -
BITFIELD0
public static final int BITFIELD0The struct member offsets. -
PREAMBLESTORAGEPATH
public static final int PREAMBLESTORAGEPATHThe struct member offsets. -
INVOCATIONEMISSIONPATH
public static final int INVOCATIONEMISSIONPATHThe struct member offsets.
-
-
Constructor Details
-
CXIndexOptions
Creates aCXIndexOptionsinstance 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<CXIndexOptions>
-
Size
public int Size()The size of structCXIndexOptionsused for option versioning.Always initialize this member to
sizeof(CXIndexOptions), or assignsizeof(CXIndexOptions)to it right after creating aCXIndexOptionsobject. -
ThreadBackgroundPriorityForIndexing
public byte ThreadBackgroundPriorityForIndexing()aCXChoiceenumerator that specifies the indexing priority policy. One of:Choice_DefaultChoice_EnabledChoice_Disabled -
ThreadBackgroundPriorityForEditing
public byte ThreadBackgroundPriorityForEditing()aCXChoiceenumerator that specifies the editing priority policy. One of:Choice_DefaultChoice_EnabledChoice_Disabled -
ExcludeDeclarationsFromPCH
public boolean ExcludeDeclarationsFromPCH()seecreateIndex -
DisplayDiagnostics
public boolean DisplayDiagnostics()seecreateIndex -
StorePreamblesInMemory
public boolean StorePreamblesInMemory()seecreateIndex -
PreambleStoragePath
the path to a directory, in which to store temporary PCH files.If null or empty, the default system temporary directory is used. These PCH files are deleted on clean exit but stay on disk if the program crashes or is killed.
This option is ignored if
StorePreamblesInMemoryis non-zero.Libclang does not create the directory at the specified path in the file system. Therefore it must exist, or storing PCH files will fail.
-
PreambleStoragePathString
the path to a directory, in which to store temporary PCH files.If null or empty, the default system temporary directory is used. These PCH files are deleted on clean exit but stay on disk if the program crashes or is killed.
This option is ignored if
StorePreamblesInMemoryis non-zero.Libclang does not create the directory at the specified path in the file system. Therefore it must exist, or storing PCH files will fail.
-
InvocationEmissionPath
specifies a path which will contain log files for certain libclang invocations.A null value implies that libclang invocations are not logged.
-
InvocationEmissionPathString
specifies a path which will contain log files for certain libclang invocations.A null value implies that libclang invocations are not logged.
-
Size
Sets the specified value to theSize()field. -
Size$Default
Sets the default value to theSize()field. -
ThreadBackgroundPriorityForIndexing
Sets the specified value to theThreadBackgroundPriorityForIndexing()field. -
ThreadBackgroundPriorityForEditing
Sets the specified value to theThreadBackgroundPriorityForEditing()field. -
ExcludeDeclarationsFromPCH
Sets the specified value to theExcludeDeclarationsFromPCH()field. -
DisplayDiagnostics
Sets the specified value to theDisplayDiagnostics()field. -
StorePreamblesInMemory
Sets the specified value to theStorePreamblesInMemory()field. -
PreambleStoragePath
Sets the address of the specified encoded string to thePreambleStoragePath()field. -
InvocationEmissionPath
Sets the address of the specified encoded string to theInvocationEmissionPath()field. -
set
public CXIndexOptions set(int Size, byte ThreadBackgroundPriorityForIndexing, byte ThreadBackgroundPriorityForEditing, boolean ExcludeDeclarationsFromPCH, boolean DisplayDiagnostics, boolean StorePreamblesInMemory, @Nullable ByteBuffer PreambleStoragePath, @Nullable ByteBuffer InvocationEmissionPath) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCXIndexOptionsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCXIndexOptionsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCXIndexOptionsinstance allocated withBufferUtils. -
create
Returns a newCXIndexOptionsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCXIndexOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCXIndexOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCXIndexOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCXIndexOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nSize
public static int nSize(long struct) Unsafe version ofSize(). -
nThreadBackgroundPriorityForIndexing
public static byte nThreadBackgroundPriorityForIndexing(long struct) Unsafe version ofThreadBackgroundPriorityForIndexing(). -
nThreadBackgroundPriorityForEditing
public static byte nThreadBackgroundPriorityForEditing(long struct) Unsafe version ofThreadBackgroundPriorityForEditing(). -
nbitfield0
public static int nbitfield0(long struct) -
nExcludeDeclarationsFromPCH
public static int nExcludeDeclarationsFromPCH(long struct) Unsafe version ofExcludeDeclarationsFromPCH(). -
nDisplayDiagnostics
public static int nDisplayDiagnostics(long struct) Unsafe version ofDisplayDiagnostics(). -
nStorePreamblesInMemory
public static int nStorePreamblesInMemory(long struct) Unsafe version ofStorePreamblesInMemory(). -
nReserved
public static int nReserved(long struct) -
nPreambleStoragePath
Unsafe version ofPreambleStoragePath(). -
nPreambleStoragePathString
Unsafe version ofPreambleStoragePathString(). -
nInvocationEmissionPath
Unsafe version ofInvocationEmissionPath(). -
nInvocationEmissionPathString
Unsafe version ofInvocationEmissionPathString(). -
nSize
public static void nSize(long struct, int value) Unsafe version ofSize. -
nThreadBackgroundPriorityForIndexing
public static void nThreadBackgroundPriorityForIndexing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForIndexing. -
nThreadBackgroundPriorityForEditing
public static void nThreadBackgroundPriorityForEditing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForEditing. -
nbitfield0
public static void nbitfield0(long struct, int value) -
nExcludeDeclarationsFromPCH
public static void nExcludeDeclarationsFromPCH(long struct, int value) Unsafe version ofExcludeDeclarationsFromPCH. -
nDisplayDiagnostics
public static void nDisplayDiagnostics(long struct, int value) Unsafe version ofDisplayDiagnostics. -
nStorePreamblesInMemory
public static void nStorePreamblesInMemory(long struct, int value) Unsafe version ofStorePreamblesInMemory. -
nReserved
public static void nReserved(long struct, int value) -
nPreambleStoragePath
Unsafe version ofPreambleStoragePath. -
nInvocationEmissionPath
Unsafe version ofInvocationEmissionPath.
-