def __getitem__ (self, index): if not isinstance (index, int): raise TypeError ("The index must be a non-negative integer") if index < 0 or index >= _lib.myelin_list_size (self): raise IndexError val = _lib.myelin_list_index (self, index) return Value.from_pointer (val)
def call (self, name, params): val = _lib.myelin_object_call (self, name, params) return Value.from_pointer (val)
def get_instance (self): instance = _lib.myelin_object_get_instance (self) return Value.from_pointer (instance)
def call (self, params): val = _lib.myelin_custom_function_type_call (self, params) return Value.from_pointer (val)
def call (self, params): # check_param_types (self.get_type().get_param_types(), params) val = _lib.myelin_function_call (self, params) return Value.from_pointer (val)
def call (self, params): # check_param_types (self.get_param_types(), params) val = _lib.myelin_constructor_call (self, params) return Value.from_pointer (val)
def convert_value(self, value): val = _lib.myelin_converter_convert_value(self, value) return Value.from_pointer(val)
def get_value (self, index): val = _lib.myelin_list_index (self, index) return Value.from_pointer (val)
def create_instance (self, params): instance = _lib.myelin_class_create_instance (self, params) return Value.from_pointer (instance)