Package org.lwjgl.llvm
Class CXIdxDeclInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXIdxDeclInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CXIdxDeclInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct CXIdxDeclInfo {CXIdxEntityInfoconst * entityInfo;CXCursorcursor;CXIdxLocloc;CXIdxContainerInfoconst * semanticContainer;CXIdxContainerInfoconst *lexicalContainer(); int isRedeclaration; int isDefinition; int isContainer;CXIdxContainerInfoconst * declAsContainer; intisImplicit();CXIdxAttrInfoconst * const * attributes; unsigned numAttributes; unsigned flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXIdxDeclInfo.BufferAn array ofCXIdxDeclInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intATTRIBUTES
CURSOR
DECLASCONTAINER
ENTITYINFO
FLAGS
ISCONTAINER
ISDEFINITION
ISIMPLICIT
ISREDECLARATION
LEXICALCONTAINER
LOC
NUMATTRIBUTES
SEMANTICCONTAINERThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXIdxDeclInfo(java.nio.ByteBuffer container)Creates aCXIdxDeclInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.lwjgl.PointerBufferattributes()static CXIdxDeclInfocalloc()Returns a newCXIdxDeclInfoinstance allocated withmemCalloc.static CXIdxDeclInfo.Buffercalloc(int capacity)Returns a newCXIdxDeclInfo.Bufferinstance allocated withmemCalloc.static CXIdxDeclInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXIdxDeclInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIdxDeclInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXIdxDeclInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIdxDeclInfocallocStack()Deprecated.static CXIdxDeclInfo.BuffercallocStack(int capacity)Deprecated.static CXIdxDeclInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXIdxDeclInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CXIdxDeclInfocreate()Returns a newCXIdxDeclInfoinstance allocated withBufferUtils.static CXIdxDeclInfo.Buffercreate(int capacity)Returns a newCXIdxDeclInfo.Bufferinstance allocated withBufferUtils.static CXIdxDeclInfocreate(long address)Returns a newCXIdxDeclInfoinstance for the specified memory address.static CXIdxDeclInfo.Buffercreate(long address, int capacity)Create aCXIdxDeclInfo.Bufferinstance at the specified memory.static CXIdxDeclInfocreateSafe(long address)static CXIdxDeclInfo.BuffercreateSafe(long address, int capacity)CXCursorcursor()CXIdxContainerInfodeclAsContainer()CXIdxEntityInfoentityInfo()intflags()booleanisContainer()booleanisDefinition()booleanisImplicit()whether the declaration exists in code or was created implicitly by the compiler, e.g.booleanisRedeclaration()CXIdxContainerInfolexicalContainer()generally same assemanticContainerbut can be different in cases like out-of-line C++ member functionsCXIdxLocloc()static CXIdxDeclInfomalloc()Returns a newCXIdxDeclInfoinstance allocated withmemAlloc.static CXIdxDeclInfo.Buffermalloc(int capacity)Returns a newCXIdxDeclInfo.Bufferinstance allocated withmemAlloc.static CXIdxDeclInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXIdxDeclInfo.Bufferinstance allocated on the specifiedMemoryStack.static CXIdxDeclInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXIdxDeclInfoinstance allocated on the specifiedMemoryStack.static CXIdxDeclInfomallocStack()Deprecated.static CXIdxDeclInfo.BuffermallocStack(int capacity)Deprecated.static CXIdxDeclInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXIdxDeclInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static org.lwjgl.PointerBuffernattributes(long struct)Unsafe version ofattributes.static CXCursorncursor(long struct)Unsafe version ofcursor().static CXIdxContainerInfondeclAsContainer(long struct)Unsafe version ofdeclAsContainer().static CXIdxEntityInfonentityInfo(long struct)Unsafe version ofentityInfo().static intnflags(long struct)Unsafe version offlags().static intnisContainer(long struct)Unsafe version ofisContainer().static intnisDefinition(long struct)Unsafe version ofisDefinition().static intnisImplicit(long struct)Unsafe version ofisImplicit().static intnisRedeclaration(long struct)Unsafe version ofisRedeclaration().static CXIdxContainerInfonlexicalContainer(long struct)Unsafe version oflexicalContainer().static CXIdxLocnloc(long struct)Unsafe version ofloc().static intnnumAttributes(long struct)Unsafe version ofnumAttributes().static CXIdxContainerInfonsemanticContainer(long struct)Unsafe version ofsemanticContainer().intnumAttributes()CXIdxContainerInfosemanticContainer()intsizeof()
-
-
-
Constructor Detail
-
CXIdxDeclInfo
public CXIdxDeclInfo(java.nio.ByteBuffer container)
Creates aCXIdxDeclInfoinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
entityInfo
public CXIdxEntityInfo entityInfo()
- Returns:
- a
CXIdxEntityInfoview of the struct pointed to by theentityInfofield.
-
semanticContainer
public CXIdxContainerInfo semanticContainer()
- Returns:
- a
CXIdxContainerInfoview of the struct pointed to by thesemanticContainerfield.
-
lexicalContainer
public CXIdxContainerInfo lexicalContainer()
generally same assemanticContainerbut can be different in cases like out-of-line C++ member functions
-
isRedeclaration
public boolean isRedeclaration()
- Returns:
- the value of the
isRedeclarationfield.
-
isDefinition
public boolean isDefinition()
- Returns:
- the value of the
isDefinitionfield.
-
isContainer
public boolean isContainer()
- Returns:
- the value of the
isContainerfield.
-
declAsContainer
public CXIdxContainerInfo declAsContainer()
- Returns:
- a
CXIdxContainerInfoview of the struct pointed to by thedeclAsContainerfield.
-
isImplicit
public boolean isImplicit()
whether the declaration exists in code or was created implicitly by the compiler, e.g. implicit Objective-C methods for properties
-
attributes
public org.lwjgl.PointerBuffer attributes()
- Returns:
- a
PointerBufferview of the data pointed to by theattributesfield.
-
numAttributes
public int numAttributes()
- Returns:
- the value of the
numAttributesfield.
-
flags
public int flags()
- Returns:
- the value of the
flagsfield.
-
malloc
public static CXIdxDeclInfo malloc()
Returns a newCXIdxDeclInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXIdxDeclInfo calloc()
Returns a newCXIdxDeclInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXIdxDeclInfo create()
Returns a newCXIdxDeclInfoinstance allocated withBufferUtils.
-
create
public static CXIdxDeclInfo create(long address)
Returns a newCXIdxDeclInfoinstance for the specified memory address.
-
createSafe
@Nullable public static CXIdxDeclInfo createSafe(long address)
-
malloc
public static CXIdxDeclInfo.Buffer malloc(int capacity)
Returns a newCXIdxDeclInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXIdxDeclInfo.Buffer calloc(int capacity)
Returns a newCXIdxDeclInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXIdxDeclInfo.Buffer create(int capacity)
Returns a newCXIdxDeclInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXIdxDeclInfo.Buffer create(long address, int capacity)
Create aCXIdxDeclInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXIdxDeclInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXIdxDeclInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXIdxDeclInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXIdxDeclInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXIdxDeclInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXIdxDeclInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXIdxDeclInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXIdxDeclInfo.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 CXIdxDeclInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXIdxDeclInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXIdxDeclInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXIdxDeclInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXIdxDeclInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxDeclInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nentityInfo
public static CXIdxEntityInfo nentityInfo(long struct)
Unsafe version ofentityInfo().
-
nsemanticContainer
public static CXIdxContainerInfo nsemanticContainer(long struct)
Unsafe version ofsemanticContainer().
-
nlexicalContainer
public static CXIdxContainerInfo nlexicalContainer(long struct)
Unsafe version oflexicalContainer().
-
nisRedeclaration
public static int nisRedeclaration(long struct)
Unsafe version ofisRedeclaration().
-
nisDefinition
public static int nisDefinition(long struct)
Unsafe version ofisDefinition().
-
nisContainer
public static int nisContainer(long struct)
Unsafe version ofisContainer().
-
ndeclAsContainer
public static CXIdxContainerInfo ndeclAsContainer(long struct)
Unsafe version ofdeclAsContainer().
-
nisImplicit
public static int nisImplicit(long struct)
Unsafe version ofisImplicit().
-
nattributes
public static org.lwjgl.PointerBuffer nattributes(long struct)
Unsafe version ofattributes.
-
nnumAttributes
public static int nnumAttributes(long struct)
Unsafe version ofnumAttributes().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
-