def get_foo_containers_record_f1(cself):
     try:
         return CPyObject.fromPyOpt(
             ListInt32THelper.c_data_set,
             CPyRecord.toPy(None, cself).optional_list_int)
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Example #2
0
 def set_optional_list_int(self, m):
     lib.cw__foo_containers_interface_set_optional_list_int(
         self._cpp_impl, CPyObject.fromPyOpt(ListInt32THelper.c_data_set,
                                             m))
     CPyException.toPyCheckAndRaise(ffi.NULL)
Example #3
0
 def set_optional_list_int(self, m):
     lib.cw__foo_containers_interface_set_optional_list_int(self._cpp_impl, CPyObject.fromPyOpt(ListInt32THelper.c_data_set, m))
     CPyException.toPyCheckAndRaise(ffi.NULL)
 def get_foo_containers_record_f1(cself):
     try:
         return CPyObject.fromPyOpt(ListInt32THelper.c_data_set, CPyRecord.toPy(None, cself).optional_list_int)
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL