db_travel.c File Reference

Inspection of a DB. More...

#include "odb.h"
Include dependency graph for db_travel.c:

Functions

odb_node_todb_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:

Detailed Description

Inspection of a DB.

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
Philippe Elie

Function Documentation

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).

References odb_descr_t::current_size, odb_t::data, odb_data::descr, and odb_data::node_base.


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1