Iterator to the contents of a KzcHashMap. More...
#include <core/util/collection/kzc_hash_map.h>
Public Attributes | |
struct KzcHashMap * | map_private |
Reference to the hash map accessed by this iterator. More... | |
union { | |
struct KzcHashMapIteratorIndexing index_private | |
struct KzcHashMapOrderedEntry * entry_private | |
} | data |
Used for tracking position of the iterator. More... | |
Iterator to the contents of a KzcHashMap.
If the hash map is ordered, the iterator will iterate the elements in the order specified by the KzcComparatorFunction.
The following example code shows how to iterate over a hash map. Notice that kzcHashMapIterationBreak() is necessary for breaking out of the iteration loop when Kanzi has been built for debugging.
Alternative accessor functions are listed in kzc_hash_map_accessors_h.inl.
struct KzcHashMap* KzcHashMapIterator::map_private |
Reference to the hash map accessed by this iterator.
struct KzcHashMapIteratorIndexing KzcHashMapIterator::index_private |
struct KzcHashMapOrderedEntry* KzcHashMapIterator::entry_private |
union { ... } KzcHashMapIterator::data |
Used for tracking position of the iterator.