@Name(value="c10::Dict<c10::IValue,c10::IValue>") @NoOffset @Properties(inherit=torch.class) public class GenericDict extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
GenericDict(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IValue |
at(IValue key)
Returns the mapped value of the element with key equivalent to key.
|
GenericDictIterator |
begin()
Returns an iterator to the first element of the container.
|
void |
clear()
Erases all elements from the container.
|
boolean |
contains(IValue key)
Checks if there is an element with key equivalent to key in the container.
|
GenericDict |
copy()
Create a new Dict pointing to a deep copy of the same data.
|
boolean |
empty()
Checks if the container has no elements.
|
GenericDictIterator |
end()
Returns an iterator to the element following the last element of the container.
|
void |
erase(GenericDictIterator iter)
Removes the element pointed to by iter.
|
long |
erase(IValue key)
Removes the element with the given key, if it exists.
|
GenericDictIterator |
find(IValue key)
Finds an element with key equivalent to key.
|
boolean |
is(GenericDict rhs)
Identity comparison.
|
Type.TypePtr |
keyType() |
GenericDict |
put(GenericDict arg0)
Create a generic dict with runtime type information.
|
void |
reserve(long count)
Increase the capacity so that at least count elements can be stored without
having to reallocate or rehash.
|
long |
size()
Returns the number of elements in the container.
|
void |
unsafeSetKeyType(Type.TypePtr t) |
void |
unsafeSetValueType(Type.TypePtr t) |
Type.TypePtr |
valueType() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic GenericDict(Pointer p)
Pointer(Pointer).@ByRef @Name(value="operator =") public GenericDict put(@Const @ByRef GenericDict arg0)
@ByVal public GenericDict copy()
@ByVal public GenericDictIterator begin()
@ByVal public GenericDictIterator end()
@Cast(value="c10::Dict<c10::IValue,c10::IValue>::size_type") public long size()
public void clear()
public void erase(@ByVal GenericDictIterator iter)
@Cast(value="size_t") public long erase(@Const @ByRef IValue key)
@ByVal public IValue at(@Const @ByRef IValue key)
@ByVal public GenericDictIterator find(@Const @ByRef IValue key)
@Cast(value="bool") public boolean contains(@Const @ByRef IValue key)
public void reserve(@Cast(value="c10::Dict<c10::IValue,c10::IValue>::size_type") long count)
@Cast(value="bool") public boolean is(@Const @ByRef GenericDict rhs)
rhs represents the same
Dict object as this.@ByVal public Type.TypePtr keyType()
@ByVal public Type.TypePtr valueType()
public void unsafeSetKeyType(@ByVal Type.TypePtr t)
public void unsafeSetValueType(@ByVal Type.TypePtr t)
Copyright © 2024. All rights reserved.