equal
deleted
inserted
replaced
58 element_subrange, |
58 element_subrange, |
59 } case_element_t ; |
59 } case_element_t ; |
60 |
60 |
61 |
61 |
62 private: |
62 private: |
63 /* a pointer to the function_block_declaration_c |
63 /* a pointer to the case_list_c currently being analyzed */ |
64 * or function_declaration_c currently being analysed. |
|
65 */ |
|
66 symbol_c *case_list; |
64 symbol_c *case_list; |
67 /* used when called to iterate() for a parameter */ |
65 /* used when called to iterate() for a parameter */ |
68 symbol_c *current_case_element; |
66 symbol_c *current_case_element; |
69 |
67 |
70 /* used to indicate the type of case element on which iterate */ |
68 /* used to indicate the type of case element on which iterate */ |
77 |
75 |
78 public: |
76 public: |
79 /* start off at the first case element once again... */ |
77 /* start off at the first case element once again... */ |
80 void reset(void); |
78 void reset(void); |
81 |
79 |
82 /* initialise the iterator object. |
80 /* initialize the iterator object. |
83 * We must be given a reference to a case_list_c that will be analysed... |
81 * We must be given a reference to a case_list_c that will be analyzed... |
84 */ |
82 */ |
85 case_element_iterator_c(symbol_c *list, case_element_t element_type); |
83 case_element_iterator_c(symbol_c *list, case_element_t element_type); |
86 |
84 |
87 /* Skip to the next case element of type chosen. After object creation, |
85 /* Skip to the next case element of type chosen. After object creation, |
88 * the object references on case element _before_ the first, so |
86 * the object references on case element _before_ the first, so |