MCPcopy Create free account
hub / github.com/bgrimstad/splinter / get_datatable

Function get_datatable

src/cinterface/utilities.cpp:32–42  ·  view source on GitHub ↗

Cast the splinter_obj_ptr to a DataTable * */

Source from the content-addressed store, hash-verified

30
31/* Cast the splinter_obj_ptr to a DataTable * */
32DataTable *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 * */
45BSpline *get_bspline(splinter_obj_ptr bspline_ptr)

Calls 1

set_error_stringFunction · 0.85

Tested by

no test coverage detected