@Namespace(value="tvm::runtime") @NoOffset @Properties(inherit=tvm_runtime.class) public class ArrayNode extends TVMObject
TVMObject.FDeleterPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static int |
_type_child_slots |
static boolean |
_type_final |
static int |
_type_index |
_type_child_slots_can_overflow, _type_has_method_sequal_reduce, _type_has_method_shash_reduce, _type_has_method_visit_attrs| Constructor and Description |
|---|
ArrayNode()
Default native constructor.
|
ArrayNode(long size)
Native array allocator.
|
ArrayNode(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
_GetOrAllocRuntimeTypeIndex() |
static int |
_type_child_slots() |
static boolean |
_type_final() |
static int |
_type_index() |
static BytePointer |
_type_key() |
ArrayNodeBase |
asArrayNodeBase() |
static ArrayNodeBase |
asArrayNodeBase(ArrayNode pointer) |
ObjectRef |
at(long i)
\brief Read i-th element from array.
|
ObjectRef |
begin() |
void |
clear()
\brief Release reference to all the elements
|
static ArrayNodePtr |
CopyFrom(long cap,
ArrayNode from)
\brief Constructs a container and copy from another
|
static ArrayNodePtr |
CreateRepeated(long n,
ObjectRef val)
\brief Constructs a container with n elements.
|
ObjectRef |
end() |
ArrayNode |
getPointer(long i) |
static ArrayNodePtr |
MoveFrom(long cap,
ArrayNode from)
\brief Constructs a container and move from another
|
ArrayNode |
position(long position) |
static int |
RuntimeTypeIndex() |
void |
SetItem(long i,
ObjectRef item)
\brief Set i-th element of the array in-place
|
long |
size() |
_type_child_slots_can_overflow, _type_has_method_sequal_reduce, _type_has_method_shash_reduce, _type_has_method_visit_attrs, GetTypeKey, GetTypeKeyHash, put, type_index, TypeIndex2Key, TypeIndex2KeyHash, TypeKey2Index, TypeKey2Index, uniqueaddress, 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 static final int _type_index
public static final boolean _type_final
public static final int _type_child_slots
public ArrayNode()
public ArrayNode(long size)
Pointer.position(long).public ArrayNode(Pointer p)
Pointer(Pointer).public ArrayNode getPointer(long i)
getPointer in class TVMObjectpublic ArrayNodeBase asArrayNodeBase()
@Namespace @Name(value="static_cast<tvm::runtime::InplaceArrayBase<tvm::runtime::ArrayNode,tvm::runtime::ObjectRef>*>") public static ArrayNodeBase asArrayNodeBase(ArrayNode pointer)
@Const @ByVal public ObjectRef at(@Cast(value="int64_t") long i)
i - The indexpublic void clear()
public void SetItem(@Cast(value="int64_t") long i, @ByVal ObjectRef item)
i - The indexitem - The value to be set@ByVal public static ArrayNodePtr CopyFrom(@Cast(value="int64_t") long cap, ArrayNode from)
cap - The capacity of the containerfrom - Source of the copy@ByVal public static ArrayNodePtr MoveFrom(@Cast(value="int64_t") long cap, ArrayNode from)
cap - The capacity of the containerfrom - Source of the move@ByVal public static ArrayNodePtr CreateRepeated(@Cast(value="int64_t") long n, @Const @ByRef ObjectRef val)
n - The size of the containerval - The init value@MemberGetter @Cast(value="const uint32_t") public static int _type_index()
@MemberGetter @Cast(value="const char*") public static BytePointer _type_key()
@MemberGetter @Cast(value="const bool") public static boolean _type_final()
@MemberGetter public static int _type_child_slots()
Copyright © 2024. All rights reserved.