Accessor to the contents of a HashMap. More...
#include <kanzi/core/legacy/util/collection/kzc_hash_map.hpp>
Public Attributes | |
| struct KzcHashMap * | map_private |
| Reference to the hash map accessed by this iterator. More... | |
| kzInt | tableIndex |
| Current index in the iterator. More... | |
| kzInt | chainIndex |
| Index in the current chain. More... | |
| kzInt | chainStart |
| Start of chain in the table. More... | |
| KzcHashMapChainLengthType | chainLength |
| Length of current chain. More... | |
Accessor to the contents of a HashMap.
Usage: struct KzcHashMapIterator it = KzcHashMapGetIterator(map); while (KzcHashMapIterate(it)) { struct SomeKey* key = (struct SomeKey*)kzcHashMapIteratorPointerGetKey(it); (Optional) struct SomeStruct* value = (struct SomeStruct*)kzcHashMapIteratorGetPointerValue(it); somestruct_some_operation(value); ... etc ... }
Alternative accessor functions are listed in "kzc_hash_map_accessors.h".
| struct KzcHashMap* KzcHashMapIterator::map_private |
Reference to the hash map accessed by this iterator.
| kzInt KzcHashMapIterator::tableIndex |
Current index in the iterator.
| kzInt KzcHashMapIterator::chainIndex |
Index in the current chain.
| kzInt KzcHashMapIterator::chainStart |
Start of chain in the table.
| KzcHashMapChainLengthType KzcHashMapIterator::chainLength |
Length of current chain.