Pebble Foundation Classes  0.2.0
C++ for Pebble
DictionaryIterator Struct Reference

#include <pebble.h>

Public Attributes

Dictionary * dictionary
 The dictionary being iterated.
 
const void * end
 
Tuple * cursor
 

Detailed Description

An iterator can be used to iterate over the key/value tuples in an existing dictionary, using dict_read_begin_from_buffer(), dict_read_first() and dict_read_next(). An iterator can also be used to append key/value tuples to a dictionary, for example using dict_write_data() or dict_write_cstring().

Member Data Documentation

◆ cursor

Tuple * DictionaryIterator::cursor

Points to the next Tuple in the dictionary. Given the end of the Dictionary has not yet been reached: when writing, the next key/value pair will be written at the cursor. When reading, the next call to dict_read_next() will return the cursor.

◆ end

const void * DictionaryIterator::end

Points to the first memory address after the last byte of the dictionary


The documentation for this struct was generated from the following files: