Quantum 3 3.0.5

Public Member Functions | Properties | List of all members
Quantum.Collections.QDictionaryIterator< K, V > Struct Template Reference

An iterator for traversing the entries of a QDictionary<K, V>. This iterator allows for traversing the key-value pairs stored within the dictionary in a sequential manner. More...

Public Member Functions

bool MoveNext ()
 Advances the iterator to the next element of the QDictionary<K, V>, which can be retrieved with QDictionaryIterator<K, V>.Current. More...
 

Properties

readonly KeyValuePair< K, V > Current [get]
 Gets the current key-value pair in the QDictionary<K, V> based in the iterator state. More...
 
readonly ref readonly K Key [get]
 Returns a readonly ref to the current key based on the iterator current element. More...
 
readonly K * KeyPtrUnsafe [get, set]
 Returns a pointer to the current key based on the iterator current element. More...
 
readonly ref readonly V Value [get]
 Returns a readonly ref to the current value based on the iterator current element. More...
 
readonly V * ValuePtrUnsafe [get, set]
 Returns a pointer to the current value based on the iterator current element. More...
 

Detailed Description

An iterator for traversing the entries of a QDictionary<K, V>. This iterator allows for traversing the key-value pairs stored within the dictionary in a sequential manner.

Type Constraints
K :unmanaged 
V :unmanaged 

Member Function Documentation

◆ MoveNext()

bool Quantum.Collections.QDictionaryIterator< K, V >.MoveNext ( )
inline

Advances the iterator to the next element of the QDictionary<K, V>, which can be retrieved with QDictionaryIterator<K, V>.Current.

Returns
true if the iterator is still in the boundaries of the QDictionary<K, V>.

Property Documentation

◆ Current

readonly KeyValuePair<K, V> Quantum.Collections.QDictionaryIterator< K, V >.Current
get

Gets the current key-value pair in the QDictionary<K, V> based in the iterator state.

◆ Key

readonly ref readonly K Quantum.Collections.QDictionaryIterator< K, V >.Key
get

Returns a readonly ref to the current key based on the iterator current element.

◆ Value

readonly ref readonly V Quantum.Collections.QDictionaryIterator< K, V >.Value
get

Returns a readonly ref to the current value based on the iterator current element.

◆ KeyPtrUnsafe

readonly K* Quantum.Collections.QDictionaryIterator< K, V >.KeyPtrUnsafe
getset

Returns a pointer to the current key based on the iterator current element.

◆ ValuePtrUnsafe

readonly V* Quantum.Collections.QDictionaryIterator< K, V >.ValuePtrUnsafe
getset

Returns a pointer to the current value based on the iterator current element.