@Name(value="c10::Dict<std::string,c10::impl::GenericList>") @NoOffset @Properties(inherit=torch.class) public class StringGenericListDict extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
StringGenericListDict()
Creates an empty dict.
|
StringGenericListDict(long size)
Native array allocator.
|
StringGenericListDict(Pointer p)
Pointer cast constructor.
|
StringGenericListDict(StringGenericListDict arg0)
Create a generic dict with runtime type information.
|
Modifier and Type | Method and Description |
---|---|
GenericList |
at(BytePointer key)
Returns the mapped value of the element with key equivalent to key.
|
GenericList |
at(String key) |
GenericDictIterator |
begin()
Returns an iterator to the first element of the container.
|
void |
clear()
Erases all elements from the container.
|
boolean |
contains(BytePointer key)
Checks if there is an element with key equivalent to key in the container.
|
boolean |
contains(String key) |
StringGenericListDict |
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.
|
long |
erase(BytePointer key)
Removes the element with the given key, if it exists.
|
void |
erase(GenericDictIterator iter)
Removes the element pointed to by iter.
|
long |
erase(String key) |
GenericDictIterator |
find(BytePointer key)
Finds an element with key equivalent to key.
|
GenericDictIterator |
find(String key) |
StringGenericListDict |
getPointer(long i) |
boolean |
is(StringGenericListDict rhs)
Identity comparison.
|
Type.TypePtr |
keyType() |
StringGenericListDict |
position(long position) |
StringGenericListDict |
put(StringGenericListDict arg0) |
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, 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 StringGenericListDict(Pointer p)
Pointer(Pointer)
.public StringGenericListDict(long size)
Pointer.position(long)
.public StringGenericListDict()
public StringGenericListDict(@Const @ByRef StringGenericListDict arg0)
public StringGenericListDict position(long position)
public StringGenericListDict getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public StringGenericListDict put(@Const @ByRef StringGenericListDict arg0)
@ByVal public StringGenericListDict copy()
@ByVal @Cast(value="c10::Dict<std::string,c10::impl::GenericList>::iterator*") public GenericDictIterator begin()
@ByVal @Cast(value="c10::Dict<std::string,c10::impl::GenericList>::iterator*") public GenericDictIterator end()
@Cast(value="c10::Dict<std::string,c10::impl::GenericList>::size_type") public long size()
public void clear()
public void erase(@ByVal @Cast(value="c10::Dict<std::string,c10::impl::GenericList>::iterator*") GenericDictIterator iter)
@Cast(value="size_t") public long erase(@StdString BytePointer key)
@Cast(value="size_t") public long erase(@StdString String key)
@ByVal public GenericList at(@StdString BytePointer key)
@ByVal public GenericList at(@StdString String key)
@ByVal @Cast(value="c10::Dict<std::string,c10::impl::GenericList>::iterator*") public GenericDictIterator find(@StdString BytePointer key)
@ByVal @Cast(value="c10::Dict<std::string,c10::impl::GenericList>::iterator*") public GenericDictIterator find(@StdString String key)
@Cast(value="bool") public boolean contains(@StdString BytePointer key)
@Cast(value="bool") public boolean contains(@StdString String key)
public void reserve(@Cast(value="c10::Dict<std::string,c10::impl::GenericList>::size_type") long count)
@Cast(value="bool") public boolean is(@Const @ByRef StringGenericListDict 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.