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