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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
 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