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