equal
deleted
inserted
replaced
166 iterator_visitor_c::~iterator_visitor_c(void) {return;} |
166 iterator_visitor_c::~iterator_visitor_c(void) {return;} |
167 |
167 |
168 |
168 |
169 void *iterator_visitor_c::visit_list(list_c *list) { |
169 void *iterator_visitor_c::visit_list(list_c *list) { |
170 for(int i = 0; i < list->n; i++) { |
170 for(int i = 0; i < list->n; i++) { |
171 list->elements[i]->accept(*this); |
171 list->get_element(i)->accept(*this); |
172 } |
172 } |
173 return NULL; |
173 return NULL; |
174 } |
174 } |
175 |
175 |
176 |
176 |
308 search_visitor_c::~search_visitor_c(void) {return;} |
308 search_visitor_c::~search_visitor_c(void) {return;} |
309 |
309 |
310 |
310 |
311 void *search_visitor_c::visit_list(list_c *list) { |
311 void *search_visitor_c::visit_list(list_c *list) { |
312 for(int i = 0; i < list->n; i++) { |
312 for(int i = 0; i < list->n; i++) { |
313 void *res = list->elements[i]->accept(*this); |
313 void *res = list->get_element(i)->accept(*this); |
314 if (res != NULL) |
314 if (res != NULL) |
315 return res; |
315 return res; |
316 } |
316 } |
317 return NULL; |
317 return NULL; |
318 } |
318 } |