Cast the splinter_obj_ptr to a DataTable * */
| 30 | |
| 31 | /* Cast the splinter_obj_ptr to a DataTable * */ |
| 32 | DataTable *get_datatable(splinter_obj_ptr datatable_ptr) |
| 33 | { |
| 34 | if (dataTables.count(datatable_ptr) > 0) |
| 35 | { |
| 36 | return static_cast<DataTable *>(datatable_ptr); |
| 37 | } |
| 38 | |
| 39 | set_error_string("Invalid reference to DataTable: Maybe it has been deleted?"); |
| 40 | |
| 41 | return nullptr; |
| 42 | } |
| 43 | |
| 44 | /* Cast the splinter_obj_ptr to a BSpline * */ |
| 45 | BSpline *get_bspline(splinter_obj_ptr bspline_ptr) |
no test coverage detected