@Namespace(value="tvm::runtime") @NoOffset @Properties(inherit=tvm_runtime.class) public class MapNode 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 |
|---|
MapNode()
Default native constructor.
|
MapNode(long size)
Native array allocator.
|
MapNode(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()
\brief Type of value stored in the hash map
|
static BytePointer |
_type_key() |
ObjectRef |
at(ObjectRef key)
\brief Index value associated with a key, throw exception if the key does not exist
|
Pointer |
begin() |
long |
count(ObjectRef key)
\brief Count the number of times a key exists in the hash map
|
static MapNodePtr |
Empty()
\brief Create an empty container
|
Pointer |
end() |
void |
erase(ObjectRef key)
\brief Erase the entry associated with the key, do nothing if not exists
|
void |
erase(Pointer _position)
\brief Erase the entry associated with the iterator
|
Pointer |
find(ObjectRef key)
\brief Index value associated with a key
|
MapNode |
getPointer(long i) |
MapNode |
position(long position) |
static int |
RuntimeTypeIndex() |
long |
size()
\brief Number of elements in the SmallMapNode
|
_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 MapNode()
public MapNode(long size)
Pointer.position(long).public MapNode(Pointer p)
Pointer(Pointer).public MapNode getPointer(long i)
getPointer in class TVMObject@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()
@Cast(value="size_t") public long size()
@Cast(value="size_t") public long count(@Const @ByRef ObjectRef key)
key - The indexing key@ByRef public ObjectRef at(@Const @ByRef ObjectRef key)
key - The indexing key@ByVal @Cast(value="tvm::runtime::MapNode::iterator*") public Pointer begin()
@ByVal @Cast(value="tvm::runtime::MapNode::iterator*") public Pointer end()
@ByVal @Cast(value="tvm::runtime::MapNode::iterator*") public Pointer find(@Const @ByRef ObjectRef key)
key - The indexing keypublic void erase(@Cast(value="const tvm::runtime::MapNode::iterator*") @ByRef Pointer _position)
position - The iteratorpublic void erase(@Const @ByRef ObjectRef key)
key - The indexing key@ByVal public static MapNodePtr Empty()
Copyright © 2024. All rights reserved.