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.NativeResource
Layout
struct CXCursorAndRangeVisitor { void * context; enum CXVisitorResult (*
visit
) (void *context, CXCursor cursor, CXSourceRange range); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXCursorAndRangeVisitor.Buffer
An array ofCXCursorAndRangeVisitor
structs.
-
Constructor Summary
Constructors Constructor Description CXCursorAndRangeVisitor(java.nio.ByteBuffer container)
Creates aCXCursorAndRangeVisitor
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CXCursorAndRangeVisitor
calloc()
Returns a newCXCursorAndRangeVisitor
instance allocated withmemCalloc
.static CXCursorAndRangeVisitor.Buffer
calloc(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated withmemCalloc
.static CXCursorAndRangeVisitor
callocStack()
Returns a newCXCursorAndRangeVisitor
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXCursorAndRangeVisitor.Buffer
callocStack(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXCursorAndRangeVisitor.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXCursorAndRangeVisitor
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXCursorAndRangeVisitor
create()
Returns a newCXCursorAndRangeVisitor
instance allocated withBufferUtils
.static CXCursorAndRangeVisitor.Buffer
create(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated withBufferUtils
.static CXCursorAndRangeVisitor
create(long address)
Returns a newCXCursorAndRangeVisitor
instance for the specified memory address.static CXCursorAndRangeVisitor.Buffer
create(long address, int capacity)
Create aCXCursorAndRangeVisitor.Buffer
instance at the specified memory.static CXCursorAndRangeVisitor
createSafe(long address)
static CXCursorAndRangeVisitor.Buffer
createSafe(long address, int capacity)
static CXCursorAndRangeVisitor
malloc()
Returns a newCXCursorAndRangeVisitor
instance allocated withmemAlloc
.static CXCursorAndRangeVisitor.Buffer
malloc(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated withmemAlloc
.static CXCursorAndRangeVisitor
mallocStack()
Returns a newCXCursorAndRangeVisitor
instance allocated on the thread-localMemoryStack
.static CXCursorAndRangeVisitor.Buffer
mallocStack(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the thread-localMemoryStack
.static CXCursorAndRangeVisitor.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the specifiedMemoryStack
.static CXCursorAndRangeVisitor
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor
instance allocated on the specifiedMemoryStack
.static CXCursorAndRangeVisit
nvisit(long struct)
Unsafe version ofvisit()
.static void
nvisit(long struct, CXCursorAndRangeVisitI value)
Unsafe version ofvisit
.CXCursorAndRangeVisitor
set(CXCursorAndRangeVisitor src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.CXCursorAndRangeVisit
visit()
Returns the value of thevisit
field.CXCursorAndRangeVisitor
visit(CXCursorAndRangeVisitI value)
Sets the specified value to thevisit
field.
-
-
-
Constructor Detail
-
CXCursorAndRangeVisitor
public CXCursorAndRangeVisitor(java.nio.ByteBuffer container)
Creates aCXCursorAndRangeVisitor
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
visit
public CXCursorAndRangeVisit visit()
Returns the value of thevisit
field.
-
visit
public CXCursorAndRangeVisitor visit(CXCursorAndRangeVisitI value)
Sets the specified value to thevisit
field.
-
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 newCXCursorAndRangeVisitor
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CXCursorAndRangeVisitor calloc()
Returns a newCXCursorAndRangeVisitor
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CXCursorAndRangeVisitor create()
Returns a newCXCursorAndRangeVisitor
instance allocated withBufferUtils
.
-
create
public static CXCursorAndRangeVisitor create(long address)
Returns a newCXCursorAndRangeVisitor
instance for the specified memory address.
-
createSafe
@Nullable public static CXCursorAndRangeVisitor createSafe(long address)
-
malloc
public static CXCursorAndRangeVisitor.Buffer malloc(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CXCursorAndRangeVisitor.Buffer calloc(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CXCursorAndRangeVisitor.Buffer create(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CXCursorAndRangeVisitor.Buffer create(long address, int capacity)
Create aCXCursorAndRangeVisitor.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXCursorAndRangeVisitor.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CXCursorAndRangeVisitor mallocStack()
Returns a newCXCursorAndRangeVisitor
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CXCursorAndRangeVisitor callocStack()
Returns a newCXCursorAndRangeVisitor
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CXCursorAndRangeVisitor mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CXCursorAndRangeVisitor callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CXCursorAndRangeVisitor.Buffer mallocStack(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CXCursorAndRangeVisitor.Buffer callocStack(int capacity)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CXCursorAndRangeVisitor.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CXCursorAndRangeVisitor.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCursorAndRangeVisitor.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nvisit
public static CXCursorAndRangeVisit nvisit(long struct)
Unsafe version ofvisit()
.
-
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
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-