@Name(value="c10::ArrayRef<c10::intrusive_ptr<c10::ivalue::Future> >") @NoOffset @Properties(inherit=torch.class) public class FuturePtrArrayRef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FuturePtrArrayRef()
\name Constructors
\{
|
FuturePtrArrayRef(FuturePtr begin,
FuturePtr end)
Construct an ArrayRef from a range.
|
FuturePtrArrayRef(FuturePtr data,
long length)
Construct an ArrayRef from a pointer and length.
|
FuturePtrArrayRef(long size)
Native array allocator.
|
FuturePtrArrayRef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
FuturePtr |
at(long Index)
Vector compatibility
|
FuturePtr |
back()
back - Get the last element.
|
FuturePtr |
begin()
\}
\name Simple Operations
\{
|
FuturePtr |
cbegin() |
FuturePtr |
cend() |
FuturePtr |
data() |
boolean |
empty()
empty - Check if the array is empty.
|
FuturePtr |
end() |
boolean |
equals(FuturePtrArrayRef RHS)
equals - Check for element-wise equality.
|
FuturePtr |
front()
front - Get the first element.
|
FuturePtr |
get(long Index)
\}
\name Operator Overloads
\{
|
FuturePtrArrayRef |
getPointer(long i) |
FuturePtrArrayRef |
position(long position) |
long |
size()
size - Get the array size.
|
FuturePtrArrayRef |
slice(long N)
slice(n) - Chop off the first N elements of the array.
|
FuturePtrArrayRef |
slice(long N,
long M)
slice(n, m) - Take M elements of the array starting at element N
|
FuturePtr |
vec()
\}
\name Expensive Operations
\{
|
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, zero
public FuturePtrArrayRef(Pointer p)
Pointer(Pointer)
.public FuturePtrArrayRef(long size)
Pointer.position(long)
.public FuturePtrArrayRef()
Construct an empty ArrayRef.
public FuturePtrArrayRef(@Const FuturePtr data, @Cast(value="size_t") long length)
public FuturePtrArrayRef position(long position)
public FuturePtrArrayRef getPointer(long i)
getPointer
in class Pointer
@Cast(value="const bool") public boolean equals(@ByVal FuturePtrArrayRef RHS)
@Const @ByVal public FuturePtrArrayRef slice(@Cast(value="size_t") long N, @Cast(value="size_t") long M)
@Const @ByVal public FuturePtrArrayRef slice(@Cast(value="size_t") long N)
@Const @ByRef @Name(value="operator []") public FuturePtr get(@Cast(value="size_t") long Index)
@StdVector public FuturePtr vec()
Copyright © 2024. All rights reserved.