@Name(value="c10::ArrayRef<std::string>") @Properties(inherit=torch.class) public class StringArrayRef extends StringHeaderOnlyArrayRef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
StringArrayRef() |
StringArrayRef(long size)
Native array allocator.
|
StringArrayRef(Pointer p)
Pointer cast constructor.
|
StringArrayRef(PointerPointer<BytePointer> data,
long length) |
StringArrayRef(PointerPointer<BytePointer> begin,
PointerPointer<BytePointer> end) |
StringArrayRef(StringVector vec)
Construct an ArrayRef from a SmallVector.
|
| Modifier and Type | Method and Description |
|---|---|
BytePointer |
at(long Index)
\}
\name Operator Overloads
\{
|
BytePointer |
back()
back - Get the last element.
|
BytePointer |
front()
\}
\name Simple Operations, mostly inherited from HeaderOnlyArrayRef
\{
|
StringArrayRef |
getPointer(long i) |
StringArrayRef |
position(long position) |
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
We deviate from HeaderOnlyArrayRef by using TORCH_CHECK instead of
STD_TORCH_CHECK
|
data, empty, get, size, vecaddress, 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, trimMemory, withDeallocator, zeropublic StringArrayRef()
public StringArrayRef(PointerPointer<BytePointer> data, long length)
public StringArrayRef(PointerPointer<BytePointer> begin, PointerPointer<BytePointer> end)
public StringArrayRef(Pointer p)
Pointer(Pointer).public StringArrayRef(long size)
Pointer.position(long).public StringArrayRef(@ByRef StringVector vec)
public StringArrayRef position(long position)
position in class StringHeaderOnlyArrayRefpublic StringArrayRef getPointer(long i)
getPointer in class StringHeaderOnlyArrayRef@StdString public BytePointer front()
front - Get the first element. We deviate from HeaderOnlyArrayRef by using TORCH_CHECK instead of STD_TORCH_CHECK
front in class StringHeaderOnlyArrayRef@StdString public BytePointer back()
back in class StringHeaderOnlyArrayRef@Const @ByVal public StringArrayRef slice(@Cast(value="size_t") long N, @Cast(value="size_t") long M)
slice in class StringHeaderOnlyArrayRef@Const @ByVal public StringArrayRef slice(@Cast(value="size_t") long N)
slice in class StringHeaderOnlyArrayRef@StdString public BytePointer at(@Cast(value="size_t") long Index)
Vector compatibility We deviate from HeaderOnlyArrayRef by using TORCH_CHECK instead of STD_TORCH_CHECK
at in class StringHeaderOnlyArrayRefCopyright © 2026. All rights reserved.