def check_empty_map(m): _ret_c = lib.cw__test_helpers_check_empty_map( CPyObjectProxy.fromPy(MapStringInt64THelper.c_data_set, MapStringInt64TProxy(m))) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret
def get_set_record_f2(cself): try: _ret = CPyObjectProxy.fromPy(SetInt32THelper.c_data_set, SetInt32TProxy(CPyRecord.toPy(None, cself).iset)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_map_record_f1(cself): try: _ret = CPyObjectProxy.fromPy(MapStringInt64THelper.c_data_set, MapStringInt64TProxy(CPyRecord.toPy(None, cself).map)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_containers_record_f14(cself): try: _ret = CPyObjectProxy.fromPy(SetOptionalStringHelper.c_data_set, SetOptionalStringProxy(CPyRecord.toPy(None, cself).set_optional_string)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_elem(cself, index): try: _ret = CPyObjectProxy.fromPy(MapStringInt64THelper.c_data_set, MapStringInt64TProxy(CPyObject.toPy(None, cself)[index])) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_containers_record_f16(cself): try: _ret = CPyObjectProxy.fromPy(MapBoxedInt32TSetStringHelper.c_data_set, MapBoxedInt32TSetStringProxy(CPyRecord.toPy(None, cself).map_optional_int_set_string)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_containers_record_f11(cself): try: _ret = CPyObjectProxy.fromPy(MapInt8TListDateHelper.c_data_set, MapInt8TListDateProxy(CPyRecord.toPy(None, cself).map_int_list_date)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_value(cself, key): pyKey = CPyBoxedI32.toPyOptWithoutTakingOwnership(key) try: _ret = CPyObjectProxy.fromPy(SetStringHelper.c_data_set, SetStringProxy(CPyObjectProxy.toPyObj(None, cself)[pyKey])) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def s(self, s): _ret_c = lib.cw__enum_usage_interface_s( self._cpp_impl, CPyObjectProxy.fromPy(SetEnumColorHelper.c_data_set, SetEnumColorProxy(s))) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyObjectProxy.toPyObj(SetEnumColorHelper.c_data_set, _ret_c) assert _ret is not None return _ret
def get_set_record_f2(cself): try: _ret = CPyObjectProxy.fromPy( SetInt32THelper.c_data_set, SetInt32TProxy(CPyRecord.toPy(None, cself).iset)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_map_record_f1(cself): try: _ret = CPyObjectProxy.fromPy( MapStringInt64THelper.c_data_set, MapStringInt64TProxy(CPyRecord.toPy(None, cself).map)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_elem(cself, index): try: _ret = CPyObjectProxy.fromPy( MapStringInt64THelper.c_data_set, MapStringInt64TProxy(CPyObject.toPy(None, cself)[index])) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_containers_record_f13(cself): try: _ret = CPyObjectProxy.fromPy( SetStringHelper.c_data_set, SetStringProxy(CPyRecord.toPy(None, cself).set_string)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_all_datatypes_f13(cself): try: _ret = CPyObjectProxy.fromPy( MapInt8TBoolHelper.c_data_set, MapInt8TBoolProxy(CPyRecord.toPy(None, cself).mapData)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_enum_usage_record_f5(cself): try: _ret = CPyObjectProxy.fromPy( MapEnumColorEnumColorHelper.c_data_set, MapEnumColorEnumColorProxy(CPyRecord.toPy(None, cself).m)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_my_record_f11(cself): try: _ret = CPyObjectProxy.fromPy( MapInt32TStringHelper.c_data_set, MapInt32TStringProxy(CPyRecord.toPy(None, cself).test8)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_my_record_f20(cself): try: _ret = CPyObjectProxy.fromPy( MapEnumMyEnumInt16THelper.c_data_set, MapEnumMyEnumInt16TProxy(CPyRecord.toPy(None, cself).test17)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_containers_record_f8(cself): try: _ret = CPyObjectProxy.fromPy( MapStringInt32THelper.c_data_set, MapStringInt32TProxy( CPyRecord.toPy(None, cself).map_string_int)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_foo_containers_record_f11(cself): try: _ret = CPyObjectProxy.fromPy( MapInt8TListDateHelper.c_data_set, MapInt8TListDateProxy( CPyRecord.toPy(None, cself).map_int_list_date)) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_value(cself, key): pyKey = CPyBoxedI32.toPyOptWithoutTakingOwnership(key) try: _ret = CPyObjectProxy.fromPy( SetStringHelper.c_data_set, SetStringProxy(CPyObjectProxy.toPyObj(None, cself)[pyKey])) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_value(cself, key): pyKey = CPyPrimitive.toPy(key) assert pyKey is not None try: _ret = CPyObjectProxy.fromPy( SetStringHelper.c_data_set, SetStringProxy(CPyObjectProxy.toPyObj(None, cself)[pyKey])) assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def check_enum_map(m): lib.cw__test_helpers_check_enum_map( CPyObjectProxy.fromPy(MapEnumColorStringHelper.c_data_set, MapEnumColorStringProxy(m))) CPyException.toPyCheckAndRaise(ffi.NULL)
def check_enum_map(m): lib.cw__test_helpers_check_enum_map(CPyObjectProxy.fromPy(MapEnumColorStringHelper.c_data_set, MapEnumColorStringProxy(m))) CPyException.toPyCheckAndRaise(ffi.NULL)
def check_empty_map(m): _ret_c = lib.cw__test_helpers_check_empty_map(CPyObjectProxy.fromPy(MapStringInt64THelper.c_data_set, MapStringInt64TProxy(m))) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret
def conflict_arg(self, cs): _ret_c = lib.cw__conflict_user_conflict_arg(self._cpp_impl, CPyObjectProxy.fromPy(SetInterfaceConflictHelper.c_data_set, SetInterfaceConflictProxy(cs))) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret