assign id to safe math function */
| 366 | |
| 367 | /* assign id to safe math function */ |
| 368 | int |
| 369 | SafeOpFlags::to_id(std::string fname) |
| 370 | { |
| 371 | for (size_t i=0; i<wrapper_names.size(); i++) { |
| 372 | if (wrapper_names[i] == fname) { |
| 373 | return i+1; |
| 374 | } |
| 375 | } |
| 376 | wrapper_names.push_back(fname); |
| 377 | return wrapper_names.size(); |
| 378 | } |