ctrump_intmap_iterator Struct Reference

テーブルイテレータ テーブルをトラバースする場合は、以下の手順に従う More...

#include <intmap.h>

Collaboration diagram for ctrump_intmap_iterator:

Collaboration graph
[legend]

Data Fields

int buckets_index
struct ctrump_intmap_bucketnext

Detailed Description

テーブルイテレータ テーブルをトラバースする場合は、以下の手順に従う

1. iterator_begin でイテレータ初期化 2. iterator_next でイテレータを進め、bucketを取得 3. bucket の中身を参照

コード例は以下 ctrump_intmap_iterator_begin(&iter, var_info_map); while (ctrump_intmap_iterator_next(&b, &iter, var_info_map)) { int map_val = (intptr_t)b->val; }

Definition at line 168 of file intmap.h.


Field Documentation

Definition at line 169 of file intmap.h.

Referenced by ctrump_intmap_iterator_next(), and iter_next().

Definition at line 170 of file intmap.h.

Referenced by ctrump_intmap_iterator_next(), and iter_next().


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

Generated on Tue Mar 31 20:19:27 2009 for ctrump by  doxygen 1.5.6