@NoOffset @Name(value="std::optional<std::shared_ptr<c10::SafePyObject> >") @Properties(inherit=torch.class) public class SafePyObjectOptional extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SafePyObjectOptional() |
SafePyObjectOptional(Pointer p)
Pointer cast constructor.
|
SafePyObjectOptional(SafePyObject value) |
Modifier and Type | Method and Description |
---|---|
SafePyObject |
get() |
boolean |
has_value() |
SafePyObjectOptional |
put(SafePyObject value) |
SafePyObjectOptional |
put(SafePyObjectOptional x) |
void |
reset() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public SafePyObjectOptional(Pointer p)
Pointer(Pointer)
.public SafePyObjectOptional(SafePyObject value)
public SafePyObjectOptional()
@Name(value="operator =") @ByRef public SafePyObjectOptional put(@ByRef SafePyObjectOptional x)
public boolean has_value()
public void reset()
@Name(value="value") @SharedPtr(value="c10::SafePyObject") public SafePyObject get()
@ValueSetter public SafePyObjectOptional put(@SharedPtr(value="c10::SafePyObject") SafePyObject value)
Copyright © 2024. All rights reserved.