@Name(value="tvm::runtime::ObjectPtr<tvm::runtime::Object>") @NoOffset @Properties(inherit=tvm_runtime.class) public class ObjectPtr extends Pointer
make_objectPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ObjectPtr()
\brief default constructor
|
ObjectPtr(long size)
Native array allocator.
|
ObjectPtr(ObjectPtr other)
\brief copy constructor
|
ObjectPtr(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TVMObject |
access() |
boolean |
asBoolean()
\brief nullptr check
|
boolean |
equals(ObjectPtr other) |
TVMObject |
get() |
ObjectPtr |
getPointer(long i) |
TVMObject |
multiply() |
boolean |
notEquals(ObjectPtr other) |
ObjectPtr |
position(long position) |
ObjectPtr |
put(ObjectPtr other)
\brief copy assignment
|
void |
reset()
\brief reset the content of ptr to be nullptr
|
void |
swap(ObjectPtr other)
\brief Swap this array with another Object
|
boolean |
unique() |
int |
use_count() |
address, 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 ObjectPtr(Pointer p)
Pointer(Pointer).public ObjectPtr(long size)
Pointer.position(long).public ObjectPtr()
public ObjectPtr getPointer(long i)
getPointer in class Pointerpublic void swap(@ByRef ObjectPtr other)
other - The other Objectpublic TVMObject get()
@ByRef @Name(value="operator =") public ObjectPtr put(@Const @ByRef ObjectPtr other)
other - The value to be assigned.@Cast(value="bool") @Name(value="operator bool") public boolean asBoolean()
public void reset()
public int use_count()
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef ObjectPtr other)
Copyright © 2024. All rights reserved.