@Name(value="dnnl::handle<dnnl_primitive_t>") @NoOffset @Properties(inherit=dnnl.class) public class dnnl_primitive_handle extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
dnnl_primitive_handle()
Constructs an empty handle object.
|
dnnl_primitive_handle(dnnl_primitive_handle arg0)
Copy constructor.
|
dnnl_primitive_handle(dnnl_primitive t) |
dnnl_primitive_handle(dnnl_primitive t,
boolean weak)
Constructs a handle wrapper object from a C API handle.
|
dnnl_primitive_handle(long size)
Native array allocator.
|
dnnl_primitive_handle(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Checks whether the object is not empty.
|
dnnl_primitive |
asDnnl_primitive()
Converts a handle to the underlying C API handle type.
|
boolean |
equals(dnnl_primitive_handle other)
Equality operator.
|
dnnl_primitive |
get() |
dnnl_primitive |
get(boolean allow_empty)
Returns the underlying C API handle.
|
dnnl_primitive_handle |
getPointer(long i) |
boolean |
notEquals(dnnl_primitive_handle other)
Inequality operator.
|
dnnl_primitive_handle |
position(long position) |
dnnl_primitive_handle |
put(dnnl_primitive_handle arg0)
Assignment operator.
|
void |
reset(dnnl_primitive t) |
void |
reset(dnnl_primitive t,
boolean weak)
Resets the handle wrapper objects to wrap a new C API handle.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic dnnl_primitive_handle(Pointer p)
Pointer.Pointer(Pointer).public dnnl_primitive_handle(long size)
Pointer.position(long).public dnnl_primitive_handle()
public dnnl_primitive_handle(@Const @ByRef dnnl_primitive_handle arg0)
public dnnl_primitive_handle(dnnl_primitive t, @Cast(value="bool") boolean weak)
t - The C API handle to wrap.weak - A flag specifying whether to construct a weak wrapper;
defaults to \c false.public dnnl_primitive_handle(dnnl_primitive t)
public dnnl_primitive_handle position(long position)
public dnnl_primitive_handle getPointer(long i)
getPointer in class Pointer@ByRef @Name(value="operator =") public dnnl_primitive_handle put(@Const @ByRef dnnl_primitive_handle arg0)
public void reset(dnnl_primitive t, @Cast(value="bool") boolean weak)
t - The new value of the C API handle.weak - A flag specifying whether the wrapper should be weak;
defaults to \c false.public void reset(dnnl_primitive t)
public dnnl_primitive get(@Cast(value="bool") boolean allow_empty)
allow_empty - A flag signifying whether the method is allowed to
return an empty (null) object without throwing an exception.public dnnl_primitive get()
@Name(value="operator dnnl_primitive_t") public dnnl_primitive asDnnl_primitive()
nullptr if the object is empty.@Cast(value="bool") @Name(value="operator bool") public boolean asBoolean()
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef dnnl_primitive_handle other)
other - Another handle wrapper.@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef dnnl_primitive_handle other)
other - Another handle wrapper.Copyright © 2020. All rights reserved.