public class CXCursorAndRangeVisitor
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct CXCursorAndRangeVisitor {
void * context;
enum CXVisitorResult (*visit) (void *context, CXCursor cursor, CXSourceRange range);
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXCursorAndRangeVisitor.Buffer
An array of
CXCursorAndRangeVisitor structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CONTEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VISIT
The struct member offsets.
|
| Constructor and Description |
|---|
CXCursorAndRangeVisitor(java.nio.ByteBuffer container)
Creates a
CXCursorAndRangeVisitor instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXCursorAndRangeVisitor |
calloc()
Returns a new
CXCursorAndRangeVisitor instance allocated with memCalloc. |
static CXCursorAndRangeVisitor.Buffer |
calloc(int capacity)
Returns a new
CXCursorAndRangeVisitor.Buffer instance allocated with memCalloc. |
static CXCursorAndRangeVisitor |
callocStack()
Returns a new
CXCursorAndRangeVisitor instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXCursorAndRangeVisitor.Buffer |
callocStack(int capacity)
Returns a new
CXCursorAndRangeVisitor.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXCursorAndRangeVisitor.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXCursorAndRangeVisitor.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXCursorAndRangeVisitor |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXCursorAndRangeVisitor instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXCursorAndRangeVisitor |
create()
Returns a new
CXCursorAndRangeVisitor instance allocated with BufferUtils. |
static CXCursorAndRangeVisitor.Buffer |
create(int capacity)
Returns a new
CXCursorAndRangeVisitor.Buffer instance allocated with BufferUtils. |
static CXCursorAndRangeVisitor |
create(long address)
Returns a new
CXCursorAndRangeVisitor instance for the specified memory address. |
static CXCursorAndRangeVisitor.Buffer |
create(long address,
int capacity)
Create a
CXCursorAndRangeVisitor.Buffer instance at the specified memory. |
static CXCursorAndRangeVisitor |
createSafe(long address)
|
static CXCursorAndRangeVisitor.Buffer |
createSafe(long address,
int capacity)
|
static CXCursorAndRangeVisitor |
malloc()
Returns a new
CXCursorAndRangeVisitor instance allocated with memAlloc. |
static CXCursorAndRangeVisitor.Buffer |
malloc(int capacity)
Returns a new
CXCursorAndRangeVisitor.Buffer instance allocated with memAlloc. |
static CXCursorAndRangeVisitor |
mallocStack()
Returns a new
CXCursorAndRangeVisitor instance allocated on the thread-local MemoryStack. |
static CXCursorAndRangeVisitor.Buffer |
mallocStack(int capacity)
Returns a new
CXCursorAndRangeVisitor.Buffer instance allocated on the thread-local MemoryStack. |
static CXCursorAndRangeVisitor.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXCursorAndRangeVisitor.Buffer instance allocated on the specified MemoryStack. |
static CXCursorAndRangeVisitor |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXCursorAndRangeVisitor instance allocated on the specified MemoryStack. |
static CXCursorAndRangeVisit |
nvisit(long struct)
Unsafe version of
visit(). |
static void |
nvisit(long struct,
CXCursorAndRangeVisitI value)
Unsafe version of
visit. |
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 be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
CXCursorAndRangeVisit |
visit()
Returns the value of the
visit field. |
CXCursorAndRangeVisitor |
visit(CXCursorAndRangeVisitI value)
Sets the specified value to the
visit field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CONTEXT
public static final int VISIT
public CXCursorAndRangeVisitor(java.nio.ByteBuffer container)
CXCursorAndRangeVisitor instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic CXCursorAndRangeVisit visit()
visit field.public CXCursorAndRangeVisitor visit(CXCursorAndRangeVisitI value)
visit field.public CXCursorAndRangeVisitor set(CXCursorAndRangeVisitor src)
src - the source structpublic static CXCursorAndRangeVisitor malloc()
CXCursorAndRangeVisitor instance allocated with memAlloc. The instance must be explicitly freed.public static CXCursorAndRangeVisitor calloc()
CXCursorAndRangeVisitor instance allocated with memCalloc. The instance must be explicitly freed.public static CXCursorAndRangeVisitor create()
CXCursorAndRangeVisitor instance allocated with BufferUtils.public static CXCursorAndRangeVisitor create(long address)
CXCursorAndRangeVisitor instance for the specified memory address.@Nullable public static CXCursorAndRangeVisitor createSafe(long address)
public static CXCursorAndRangeVisitor.Buffer malloc(int capacity)
CXCursorAndRangeVisitor.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXCursorAndRangeVisitor.Buffer calloc(int capacity)
CXCursorAndRangeVisitor.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXCursorAndRangeVisitor.Buffer create(int capacity)
CXCursorAndRangeVisitor.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXCursorAndRangeVisitor.Buffer create(long address, int capacity)
CXCursorAndRangeVisitor.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXCursorAndRangeVisitor.Buffer createSafe(long address, int capacity)
public static CXCursorAndRangeVisitor mallocStack()
CXCursorAndRangeVisitor instance allocated on the thread-local MemoryStack.public static CXCursorAndRangeVisitor callocStack()
CXCursorAndRangeVisitor instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXCursorAndRangeVisitor mallocStack(org.lwjgl.system.MemoryStack stack)
CXCursorAndRangeVisitor instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXCursorAndRangeVisitor callocStack(org.lwjgl.system.MemoryStack stack)
CXCursorAndRangeVisitor instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXCursorAndRangeVisitor.Buffer mallocStack(int capacity)
CXCursorAndRangeVisitor.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXCursorAndRangeVisitor.Buffer callocStack(int capacity)
CXCursorAndRangeVisitor.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXCursorAndRangeVisitor.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXCursorAndRangeVisitor.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXCursorAndRangeVisitor.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXCursorAndRangeVisitor.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXCursorAndRangeVisit nvisit(long struct)
visit().public static void nvisit(long struct,
CXCursorAndRangeVisitI value)
visit.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.