Top Description Inners Fields Constructors Methods
org.lwjgl.util.hwloc

public Class hwloc_obj

extends Struct<hwloc_obj>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct hwloc_obj
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct hwloc_obj {
    hwloc_obj_type_t type;
    char * subtype;
    unsigned os_index;
    char * name;
    hwloc_uint64_t total_memory;
    struct hwloc_obj_attr_u * attr;
    int depth;
    unsigned logical_index;
    struct hwloc_obj * next_cousin;
    struct hwloc_obj * prev_cousin;
    struct hwloc_obj * parent;
    unsigned sibling_rank;
    struct hwloc_obj * next_sibling;
    struct hwloc_obj * prev_sibling;
    unsigned arity;
    struct hwloc_obj ** children;
    struct hwloc_obj * first_child;
    struct hwloc_obj * last_child;
    int symmetric_subtree;
    unsigned memory_arity;
    struct hwloc_obj * memory_first_child;
    unsigned io_arity;
    struct hwloc_obj * io_first_child;
    unsigned misc_arity;
    struct hwloc_obj * misc_first_child;
    hwloc_cpuset_t cpuset;
    hwloc_cpuset_t complete_cpuset;
    hwloc_nodeset_t nodeset;
    hwloc_nodeset_t complete_nodeset;
    struct hwloc_infos_s infos;
    void * userdata;
    hwloc_uint64_t gp_index;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
hwloc_obj.Buffer

An array of hwloc_obj structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ARITY

The struct member offsets.

public static final int
ATTR

The struct member offsets.

public static final int
CHILDREN

The struct member offsets.

public static final int
COMPLETE_CPUSET

The struct member offsets.

public static final int
COMPLETE_NODESET

The struct member offsets.

public static final int
CPUSET

The struct member offsets.

public static final int
DEPTH

The struct member offsets.

public static final int
FIRST_CHILD

The struct member offsets.

public static final int
GP_INDEX

The struct member offsets.

public static final int
INFOS

The struct member offsets.

public static final int
IO_ARITY

The struct member offsets.

public static final int
IO_FIRST_CHILD

The struct member offsets.

public static final int
LAST_CHILD

The struct member offsets.

public static final int
LOGICAL_INDEX

The struct member offsets.

public static final int
MEMORY_ARITY

The struct member offsets.

public static final int
MEMORY_FIRST_CHILD

The struct member offsets.

public static final int
MISC_ARITY

The struct member offsets.

public static final int
MISC_FIRST_CHILD

The struct member offsets.

public static final int
NAME

The struct member offsets.

public static final int
NEXT_COUSIN

The struct member offsets.

public static final int
NEXT_SIBLING

The struct member offsets.

public static final int
NODESET

The struct member offsets.

public static final int
OS_INDEX

The struct member offsets.

public static final int
PARENT

The struct member offsets.

public static final int
PREV_COUSIN

The struct member offsets.

public static final int
PREV_SIBLING

The struct member offsets.

public static final int
SIBLING_RANK

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SUBTYPE

The struct member offsets.

public static final int
SYMMETRIC_SUBTREE

The struct member offsets.

public static final int
TOTAL_MEMORY

The struct member offsets.

public static final int
TYPE

The struct member offsets.

public static final int
USERDATA

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
hwloc_obj(long address, ByteBuffer container)

public
hwloc_obj(ByteBuffer container)

Creates a hwloc_obj instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the arity field.
arity
()

public hwloc_obj_attr_u

Returns:

a hwloc_obj_attr_u view of the struct pointed to by the attr field.
attr
()

public static hwloc_obj
calloc()

Returns a new hwloc_obj instance allocated with memCalloc.

public static hwloc_obj.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new hwloc_obj.Buffer instance allocated with memCalloc.

public static hwloc_obj
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new hwloc_obj instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static hwloc_obj.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new hwloc_obj.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public PointerBuffer

Returns:

a PointerBuffer view of the data pointed to by the children field.
children
()

public long

Returns:

the value of the complete_cpuset field.
complete_cpuset
()

public long

Returns:

the value of the complete_nodeset field.
complete_nodeset
()

public long

Returns:

the value of the cpuset field.
cpuset
()

protected hwloc_obj
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static hwloc_obj
create()

Returns a new hwloc_obj instance allocated with BufferUtils.

public static hwloc_obj
create(long address)

Returns a new hwloc_obj instance for the specified memory address.

public static hwloc_obj.Buffer
create(int
the buffer capacity
capacity
)

Returns a new hwloc_obj.Buffer instance allocated with BufferUtils.

public static hwloc_obj.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a hwloc_obj.Buffer instance at the specified memory.

public static hwloc_obj
createSafe(long address)

Like create, but returns null if address is NULL.

public static hwloc_obj.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int

Returns:

the value of the depth field.
depth
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the first_child field.
first_child
()

public long

Returns:

the value of the gp_index field.
gp_index
()

public hwloc_infos_s

Returns:

a hwloc_infos_s view of the infos field.
infos
()

public int

Returns:

the value of the io_arity field.
io_arity
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the io_first_child field.
io_first_child
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the last_child field.
last_child
()

public int

Returns:

the value of the logical_index field.
logical_index
()

public static hwloc_obj
malloc()

Returns a new hwloc_obj instance allocated with memAlloc.

public static hwloc_obj.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new hwloc_obj.Buffer instance allocated with memAlloc.

public static hwloc_obj
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new hwloc_obj instance allocated on the specified MemoryStack.

public static hwloc_obj.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new hwloc_obj.Buffer instance allocated on the specified MemoryStack.

public int

Returns:

the value of the memory_arity field.
memory_arity
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the memory_first_child field.
memory_first_child
()

public int

Returns:

the value of the misc_arity field.
misc_arity
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the misc_first_child field.
misc_first_child
()

public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the name field.
name
()

public String

Returns:

the null-terminated string pointed to by the name field.
nameString
()

public static int
narity(long struct)

Unsafe version of arity.

public static hwloc_obj_attr_u
nattr(long struct)

Unsafe version of attr.

public static PointerBuffer
nchildren(long struct)

Unsafe version of children.

public static long
ncomplete_cpuset(long struct)

Unsafe version of complete_cpuset.

public static long
ncomplete_nodeset(long struct)

Unsafe version of complete_nodeset.

public static long
ncpuset(long struct)

Unsafe version of cpuset.

public static int
ndepth(long struct)

Unsafe version of depth.

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the next_cousin field.
next_cousin
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the next_sibling field.
next_sibling
()

public static hwloc_obj
nfirst_child(long struct)

Unsafe version of first_child.

public static long
ngp_index(long struct)

Unsafe version of gp_index.

public static hwloc_infos_s
ninfos(long struct)

Unsafe version of infos.

public static int
nio_arity(long struct)

Unsafe version of io_arity.

public static hwloc_obj
nio_first_child(long struct)

Unsafe version of io_first_child.

public static hwloc_obj
nlast_child(long struct)

Unsafe version of last_child.

public static int
nlogical_index(long struct)

Unsafe version of logical_index.

public static int
nmemory_arity(long struct)

Unsafe version of memory_arity.

public static hwloc_obj
nmemory_first_child(long struct)

Unsafe version of memory_first_child.

public static int
nmisc_arity(long struct)

Unsafe version of misc_arity.

public static hwloc_obj
nmisc_first_child(long struct)

Unsafe version of misc_first_child.

public static ByteBuffer
nname(long struct)

Unsafe version of name.

public static String
nnameString(long struct)

Unsafe version of nameString.

public static hwloc_obj
nnext_cousin(long struct)

Unsafe version of next_cousin.

public static hwloc_obj
nnext_sibling(long struct)

Unsafe version of next_sibling.

public static long
nnodeset(long struct)

Unsafe version of nodeset.

public long

Returns:

the value of the nodeset field.
nodeset
()

public static int
nos_index(long struct)

Unsafe version of os_index.

public static hwloc_obj
nparent(long struct)

Unsafe version of parent.

public static hwloc_obj
nprev_cousin(long struct)

Unsafe version of prev_cousin.

public static hwloc_obj
nprev_sibling(long struct)

Unsafe version of prev_sibling.

public static int
nsibling_rank(long struct)

Unsafe version of sibling_rank.

public static ByteBuffer
nsubtype(long struct)

Unsafe version of subtype.

public static String
nsubtypeString(long struct)

Unsafe version of subtypeString.

public static int
nsymmetric_subtree(long struct)

Unsafe version of symmetric_subtree.

public static long
ntotal_memory(long struct)

Unsafe version of total_memory.

public static int
ntype(long struct)

Unsafe version of type.

public static long
nuserdata(long struct)

Unsafe version of userdata.

public static void
nuserdata(long struct, long value)

Unsafe version of userdata.

public int

Returns:

the value of the os_index field.
os_index
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the parent field.
parent
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the prev_cousin field.
prev_cousin
()

public hwloc_obj

Returns:

a hwloc_obj view of the struct pointed to by the prev_sibling field.
prev_sibling
()

public hwloc_obj

Returns:

this struct
set
(hwloc_obj
the source struct
src
)

Copies the specified struct data to this struct.

public int

Returns:

the value of the sibling_rank field.
sibling_rank
()

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the subtype field.
subtype
()

public String

Returns:

the null-terminated string pointed to by the subtype field.
subtypeString
()

public boolean

Returns:

the value of the symmetric_subtree field.
symmetric_subtree
()

public long

Returns:

the value of the total_memory field.
total_memory
()

public int

Returns:

the value of the type field.
type
()

public long

Returns:

the value of the userdata field.
userdata
()

public hwloc_obj
userdata(long value)

Sets the specified value to the userdata field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate