Pebble Foundation Classes
0.2.0
C++ for Pebble
|
#include <pebble.h>
Public Attributes | |
Dictionary * | dictionary |
The dictionary being iterated. | |
const void * | end |
Tuple * | cursor |
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().
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.
const void * DictionaryIterator::end |
Points to the first memory address after the last byte of the dictionary