Пример #1
0
 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
Пример #2
0
 def get_param_types (self):
     list = _lib.myelin_constructor_get_param_types (self)
     return List.from_pointer (list)
Пример #3
0
 def get_param_types (self):
     list = _lib.myelin_function_type_get_param_types (self)
     return List.from_pointer (list)
Пример #4
0
 def get_classes (self):
     list = _lib.myelin_namespace_get_classes (self)
     return List.from_pointer (list)
Пример #5
0
 def get_namespaces (self):
     list = _lib.myelin_repository_get_namespaces (self)
     return List.from_pointer (list)
Пример #6
0
 def get_all_functions (self):
     list = _lib.myelin_class_get_all_functions (self)
     return List.from_pointer (list)
Пример #7
0
 def get_constructors (self):
     list = _lib.myelin_class_get_constructors (self)
     return List.from_pointer (list)
Пример #8
0
 def get_bases (self):
     list = _lib.myelin_class_get_bases (self)
     return List.from_pointer (list)