@Namespace(value="tvm::runtime") @Properties(inherit=tvm_runtime.class) public class ADT extends ObjectRef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter_type_is_nullable| Constructor and Description |
|---|
ADT()
\brief Construct a tuple object.
|
ADT(ADT other) |
ADT(int tag,
ObjectRef fields)
\brief construct an ADT object reference.
|
ADT(long size)
Native array allocator.
|
ADT(ObjectPtr n) |
ADT(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ADTObj |
access() |
ADTObj |
get() |
ObjectRef |
get(long idx)
\brief Access element at index.
|
ADT |
getPointer(long i) |
ADT |
position(long position) |
ADT |
put(ADT other) |
long |
size()
\brief Return the number of fields.
|
int |
tag()
\brief Return the ADT tag.
|
_type_is_nullable, defined, equals, lessThan, notEquals, same_as, unique, use_countaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ADT(Pointer p)
Pointer(Pointer).public ADT(long size)
Pointer.position(long).public ADT(int tag,
@StdVector
ObjectRef fields)
tag - The tag of the ADT object.fields - The fields of the ADT object.public ADT()
args - Tuple fields.public ADT getPointer(long i)
getPointer in class ObjectRef@Const @ByRef @Name(value="operator []") public ObjectRef get(@Cast(value="size_t") long idx)
idx - The array indexpublic int tag()
Copyright © 2022. All rights reserved.