| 106 | |
| 107 | template <typename T, typename F> |
| 108 | vtkSmartPyObject convert_value(const vtkClientServerStream& msg, int idx, int arg, F f) |
| 109 | { |
| 110 | T cval; |
| 111 | if (!msg.GetArgument(idx, arg, &cval)) |
| 112 | { |
| 113 | throw convert_error(); |
| 114 | } |
| 115 | return vtkSmartPyObject(f(cval)); |
| 116 | } |
| 117 | |
| 118 | // Converts the argument index given by `arg`, from a `msg` at index `idx` using. |
| 119 | // Handles both single valued arguments and arrays. For arrays, it creates a |
nothing calls this directly
no test coverage detected