@Name(value="c10::List<int64_t>") @NoOffset @Properties(inherit=torch.class) public class LongList extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LongList()
Constructs an empty list.
|
LongList(long... initial_values) |
LongList(long size)
Native array allocator.
|
LongList(LongArrayRef initial_values)
Constructs a list with some initial values.
|
LongList(LongList arg0)
Create a generic list with runtime type information.
|
LongList(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(LongList lst)
Appends the given list to the end of the container.
|
LongListIterator |
begin()
Returns an iterator to the first element of the container.
|
void |
clear()
Erases all elements from the container.
|
LongList |
copy()
Create a new List pointing to a deep copy of the same data.
|
Type.TypePtr |
elementType() |
boolean |
empty()
Checks if the container has no elements.
|
LongListIterator |
end()
Returns an iterator to the element following the last element of the container.
|
LongListIterator |
erase(LongListIterator pos)
Removes the element at pos.
|
LongListIterator |
erase(LongListIterator first,
LongListIterator last)
Removes the elements in the range [first, last).
|
long |
extract(long pos)
Moves out the element at the specified location pos and returns it, with bounds checking.
|
long |
get(long pos)
Returns the element at specified location pos, with bounds checking.
|
LongList |
getPointer(long i) |
LongListIterator |
insert(LongListIterator pos,
long value)
Inserts value before pos.
|
boolean |
is(LongList rhs)
Identity comparison.
|
void |
pop_back()
Removes the last element of the container.
|
LongList |
position(long position) |
void |
push_back(long value)
Appends the given element value to the end of the container.
|
LongList |
put(LongList arg0) |
void |
reserve(long new_cap)
Increase the capacity of the vector to a value that's greater or equal to new_cap.
|
void |
resize(long count)
Resizes the container to contain count elements.
|
void |
resize(long count,
long value)
Resizes the container to contain count elements.
|
void |
set(long pos,
long value)
Assigns a new value to the element at location pos.
|
long |
size()
Returns the number of elements in the container
|
void |
unsafeSetElementType(Type.TypePtr t) |
long |
use_count()
Returns the number of Lists currently pointing to this same list.
|
LongVector |
vec() |
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 LongList(Pointer p)
Pointer(Pointer)
.public LongList(long size)
Pointer.position(long)
.public LongList()
public LongList(@ByVal LongArrayRef initial_values)
public LongList(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... initial_values)
public LongList getPointer(long i)
getPointer
in class Pointer
@ByVal public LongList copy()
public long get(long pos)
public long extract(long pos)
public void set(long pos, long value)
@ByVal @Cast(value="c10::List<int64_t>::iterator*") public LongListIterator begin()
@ByVal @Cast(value="c10::List<int64_t>::iterator*") public LongListIterator end()
public long size()
public void reserve(long new_cap)
public void clear()
@ByVal @Cast(value="c10::List<int64_t>::iterator*") public LongListIterator insert(@ByVal @Cast(value="c10::List<int64_t>::iterator*") LongListIterator pos, @Cast(value="const int64_t") long value)
public void push_back(@Cast(value="const int64_t") long value)
public void append(@ByVal LongList lst)
@ByVal @Cast(value="c10::List<int64_t>::iterator*") public LongListIterator erase(@ByVal @Cast(value="c10::List<int64_t>::iterator*") LongListIterator pos)
@ByVal @Cast(value="c10::List<int64_t>::iterator*") public LongListIterator erase(@ByVal @Cast(value="c10::List<int64_t>::iterator*") LongListIterator first, @ByVal @Cast(value="c10::List<int64_t>::iterator*") LongListIterator last)
public void pop_back()
public void resize(long count)
public void resize(long count, @Cast(value="const int64_t") long value)
@Cast(value="bool") public boolean is(@Const @ByRef LongList rhs)
rhs
represents the same
List object as this
.@ByVal @Cast(value="std::vector<int64_t>*") public LongVector vec()
@Cast(value="size_t") public long use_count()
@ByVal public Type.TypePtr elementType()
public void unsafeSetElementType(@ByVal Type.TypePtr t)
Copyright © 2024. All rights reserved.