@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class SourceRange extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static long |
CONTEXT |
Constructor and Description |
---|
SourceRange() |
SourceRange(long size)
Native array allocator.
|
SourceRange(Pointer p)
Pointer cast constructor.
|
SourceRange(Source source_view,
long start_,
long end_) |
SourceRange(Source source_view_,
StringCordView.Iterator start_iter,
long end_) |
Modifier and Type | Method and Description |
---|---|
static long |
CONTEXT() |
long |
end() |
boolean |
equals(SourceRange rhs) |
T_StringSizeTSizeT_TOptional |
file_line_col() |
SourceRangeOptional |
findSourceRangeThatGenerated() |
SourceRange |
getPointer(long i) |
void |
highlight(Pointer out) |
boolean |
notEquals(SourceRange rhs) |
SourceRange |
position(long position) |
void |
print_with_context(Pointer out,
long context,
boolean highlight,
BytePointer funcname) |
void |
print_with_context(Pointer out,
long context,
boolean highlight,
String funcname) |
long |
size() |
Source |
source() |
long |
start() |
BytePointer |
str() |
StringCordView |
text() |
BytePointer |
token_text() |
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 SourceRange(Pointer p)
Pointer(Pointer)
.public SourceRange(long size)
Pointer.position(long)
.public SourceRange(@SharedPtr Source source_view, @Cast(value="size_t") long start_, @Cast(value="size_t") long end_)
public SourceRange()
public SourceRange(@SharedPtr Source source_view_, @ByVal StringCordView.Iterator start_iter, @Cast(value="size_t") long end_)
public SourceRange position(long position)
public SourceRange getPointer(long i)
getPointer
in class Pointer
@StringView public BytePointer token_text()
@Const @ByVal public StringCordView text()
@MemberGetter @Cast(value="const size_t") public static long CONTEXT()
public void print_with_context(@Cast(value="std::ostream*") @ByRef Pointer out, @Cast(value="size_t") long context, @Cast(value="bool") boolean highlight, @StdString BytePointer funcname)
public void print_with_context(@Cast(value="std::ostream*") @ByRef Pointer out, @Cast(value="size_t") long context, @Cast(value="bool") boolean highlight, @StdString String funcname)
@SharedPtr public Source source()
@StdString public BytePointer str()
@ByVal public T_StringSizeTSizeT_TOptional file_line_col()
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef SourceRange rhs)
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef SourceRange rhs)
@ByVal public SourceRangeOptional findSourceRangeThatGenerated()
Copyright © 2024. All rights reserved.