def _callback (self, params): args = [] list = List.from_pointer (ctypes.c_void_p (params)) for val in list: args.append (val.get()) # class method if self._self_object is not None: ret = self._callback_func (self._self_object(), *args) else: ret = self._callback_func (*args) if isinstance (ret, Value): _lib.myelin_value_ref (ret) return ret._ptr else: val = Value() if ret is not None: val.set (ret) _lib.myelin_value_ref (val) return val._ptr
def get_param_types (self): list = _lib.myelin_constructor_get_param_types (self) return List.from_pointer (list)
def get_param_types (self): list = _lib.myelin_function_type_get_param_types (self) return List.from_pointer (list)
def get_classes (self): list = _lib.myelin_namespace_get_classes (self) return List.from_pointer (list)
def get_namespaces (self): list = _lib.myelin_repository_get_namespaces (self) return List.from_pointer (list)
def get_all_functions (self): list = _lib.myelin_class_get_all_functions (self) return List.from_pointer (list)
def get_constructors (self): list = _lib.myelin_class_get_constructors (self) return List.from_pointer (list)
def get_bases (self): list = _lib.myelin_class_get_bases (self) return List.from_pointer (list)