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