Package org.lwjgl.llvm
Class CXCursorAndRangeVisitor
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXCursorAndRangeVisitor
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CXCursorAndRangeVisitor extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct CXCursorAndRangeVisitor { void * context; enum CXVisitorResult (*visit) (void *context, CXCursor cursor, CXSourceRange range); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXCursorAndRangeVisitor.BufferAn array ofCXCursorAndRangeVisitorstructs.
-
Constructor Summary
Constructors Constructor Description CXCursorAndRangeVisitor(java.nio.ByteBuffer container)Creates aCXCursorAndRangeVisitorinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CXCursorAndRangeVisitorcalloc()Returns a newCXCursorAndRangeVisitorinstance allocated withmemCalloc.static CXCursorAndRangeVisitor.Buffercalloc(int capacity)Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated withmemCalloc.static CXCursorAndRangeVisitor.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCursorAndRangeVisitorcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCursorAndRangeVisitorinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCursorAndRangeVisitorcallocStack()Deprecated.static CXCursorAndRangeVisitor.BuffercallocStack(int capacity)Deprecated.static CXCursorAndRangeVisitor.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCursorAndRangeVisitorcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longcontext()CXCursorAndRangeVisitorcontext(long value)Sets the specified value to thecontextfield.static CXCursorAndRangeVisitorcreate()Returns a newCXCursorAndRangeVisitorinstance allocated withBufferUtils.static CXCursorAndRangeVisitor.Buffercreate(int capacity)Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated withBufferUtils.static CXCursorAndRangeVisitorcreate(long address)Returns a newCXCursorAndRangeVisitorinstance for the specified memory address.static CXCursorAndRangeVisitor.Buffercreate(long address, int capacity)Create aCXCursorAndRangeVisitor.Bufferinstance at the specified memory.static CXCursorAndRangeVisitorcreateSafe(long address)static CXCursorAndRangeVisitor.BuffercreateSafe(long address, int capacity)static CXCursorAndRangeVisitormalloc()Returns a newCXCursorAndRangeVisitorinstance allocated withmemAlloc.static CXCursorAndRangeVisitor.Buffermalloc(int capacity)Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated withmemAlloc.static CXCursorAndRangeVisitor.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated on the specifiedMemoryStack.static CXCursorAndRangeVisitormalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCursorAndRangeVisitorinstance allocated on the specifiedMemoryStack.static CXCursorAndRangeVisitormallocStack()Deprecated.static CXCursorAndRangeVisitor.BuffermallocStack(int capacity)Deprecated.static CXCursorAndRangeVisitor.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCursorAndRangeVisitormallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longncontext(long struct)Unsafe version ofcontext().static voidncontext(long struct, long value)Unsafe version ofcontext.static CXCursorAndRangeVisitnvisit(long struct)Unsafe version ofvisit().static voidnvisit(long struct, CXCursorAndRangeVisitI value)Unsafe version ofvisit.CXCursorAndRangeVisitorset(long context, CXCursorAndRangeVisitI visit)Initializes this struct with the specified values.CXCursorAndRangeVisitorset(CXCursorAndRangeVisitor src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.CXCursorAndRangeVisitvisit()CXCursorAndRangeVisitorvisit(CXCursorAndRangeVisitI value)Sets the specified value to thevisitfield.
-
-
-
Constructor Detail
-
CXCursorAndRangeVisitor
public CXCursorAndRangeVisitor(java.nio.ByteBuffer container)
Creates aCXCursorAndRangeVisitorinstance 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
-
context
public long context()
- Returns:
- the value of the
contextfield.
-
visit
public CXCursorAndRangeVisit visit()
- Returns:
- the value of the
visitfield.
-
context
public CXCursorAndRangeVisitor context(long value)
Sets the specified value to thecontextfield.
-
visit
public CXCursorAndRangeVisitor visit(CXCursorAndRangeVisitI value)
Sets the specified value to thevisitfield.
-
set
public CXCursorAndRangeVisitor set(long context, CXCursorAndRangeVisitI visit)
Initializes this struct with the specified values.
-
set
public CXCursorAndRangeVisitor set(CXCursorAndRangeVisitor src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CXCursorAndRangeVisitor malloc()
Returns a newCXCursorAndRangeVisitorinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXCursorAndRangeVisitor calloc()
Returns a newCXCursorAndRangeVisitorinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXCursorAndRangeVisitor create()
Returns a newCXCursorAndRangeVisitorinstance allocated withBufferUtils.
-
create
public static CXCursorAndRangeVisitor create(long address)
Returns a newCXCursorAndRangeVisitorinstance for the specified memory address.
-
createSafe
@Nullable public static CXCursorAndRangeVisitor createSafe(long address)
-
malloc
public static CXCursorAndRangeVisitor.Buffer malloc(int capacity)
Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXCursorAndRangeVisitor.Buffer calloc(int capacity)
Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXCursorAndRangeVisitor.Buffer create(int capacity)
Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXCursorAndRangeVisitor.Buffer create(long address, int capacity)
Create aCXCursorAndRangeVisitor.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXCursorAndRangeVisitor.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXCursorAndRangeVisitor mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXCursorAndRangeVisitor callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCursorAndRangeVisitor mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXCursorAndRangeVisitor callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCursorAndRangeVisitor.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXCursorAndRangeVisitor.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCursorAndRangeVisitor.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 CXCursorAndRangeVisitor.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXCursorAndRangeVisitor malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitorinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXCursorAndRangeVisitor calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitorinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXCursorAndRangeVisitor.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXCursorAndRangeVisitor.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ncontext
public static long ncontext(long struct)
Unsafe version ofcontext().
-
nvisit
public static CXCursorAndRangeVisit nvisit(long struct)
Unsafe version ofvisit().
-
ncontext
public static void ncontext(long struct, long value)Unsafe version ofcontext.
-
nvisit
public static void nvisit(long struct, CXCursorAndRangeVisitI value)Unsafe version ofvisit.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-