#include "odb.h"
Go to the source code of this file.
Functions | |
odb_node_t * | odb_get_iterator (odb_t const *odb, odb_node_nr_t *nr) |
Inspection of a DB
Definition in file db_travel.c.
odb_node_t* odb_get_iterator | ( | odb_t const * | odb, | |
odb_node_nr_t * | nr | |||
) |
return a base pointer to the node array and number of node in this array caller then will iterate through:
odb_node_nr_t node_nr, pos; odb_node_t * node = odb_get_iterator(odb, &node_nr); for ( pos = 0 ; pos < node_nr ; ++pos) // do something
note than caller does not need to filter nil key as it's a valid key, The returned range is all valid (i.e. should never contain zero value).
Definition at line 13 of file db_travel.c.
References odb_descr_t::current_size, odb_t::data, odb_data::descr, and odb_data::node_base.